DEV: fix linting
This commit is contained in:
parent
d541183906
commit
3b5c214ac3
|
@ -25,7 +25,9 @@ export default Component.extend({
|
|||
this,
|
||||
key,
|
||||
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];
|
||||
})
|
||||
|
|
|
@ -30,7 +30,10 @@ import Component from "@ember/component";
|
|||
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({
|
||||
tagName: "span",
|
||||
|
@ -46,7 +49,10 @@ export default Component.extend({
|
|||
this._super(...arguments);
|
||||
const name = this.name;
|
||||
if (name) {
|
||||
const args = buildArgsWithDeprecations(this.args || {}, this.deprecatedArgs || {});
|
||||
const args = buildArgsWithDeprecations(
|
||||
this.args || {},
|
||||
this.deprecatedArgs || {}
|
||||
);
|
||||
this.set("connectors", renderedConnectorsFor(name, args, this));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue