mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 11:52:44 +08:00
DEV: fix linting
This commit is contained in:
parent
d541183906
commit
3b5c214ac3
|
@ -25,7 +25,9 @@ export default Component.extend({
|
||||||
this,
|
this,
|
||||||
key,
|
key,
|
||||||
computed("deprecatedArgs", () => {
|
computed("deprecatedArgs", () => {
|
||||||
deprecated(`The ${key} property is deprecated, but is being used in ${this.layoutName}`);
|
deprecated(
|
||||||
|
`The ${key} property is deprecated, but is being used in ${this.layoutName}`
|
||||||
|
);
|
||||||
|
|
||||||
return (this.deprecatedArgs || {})[key];
|
return (this.deprecatedArgs || {})[key];
|
||||||
})
|
})
|
||||||
|
|
|
@ -30,7 +30,10 @@ import Component from "@ember/component";
|
||||||
The list of disabled plugins is returned via the `Site` singleton.
|
The list of disabled plugins is returned via the `Site` singleton.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
import { renderedConnectorsFor, buildArgsWithDeprecations } from "discourse/lib/plugin-connectors";
|
import {
|
||||||
|
renderedConnectorsFor,
|
||||||
|
buildArgsWithDeprecations
|
||||||
|
} from "discourse/lib/plugin-connectors";
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
tagName: "span",
|
tagName: "span",
|
||||||
|
@ -46,7 +49,10 @@ export default Component.extend({
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
const name = this.name;
|
const name = this.name;
|
||||||
if (name) {
|
if (name) {
|
||||||
const args = buildArgsWithDeprecations(this.args || {}, this.deprecatedArgs || {});
|
const args = buildArgsWithDeprecations(
|
||||||
|
this.args || {},
|
||||||
|
this.deprecatedArgs || {}
|
||||||
|
);
|
||||||
this.set("connectors", renderedConnectorsFor(name, args, this));
|
this.set("connectors", renderedConnectorsFor(name, args, this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user