0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-13 21:42:53 +01:00

Make linters happy

Dieser Commit ist enthalten in:
Angus McLeod 2023-03-15 10:30:24 +01:00
Ursprung e489845daf
Commit 24ce4da6f2
2 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -79,9 +79,11 @@ export default ComposerEditor.extend({
this._bindUploadTarget(); this._bindUploadTarget();
const field = this.field; const field = this.field;
this.editorInputClass = `.${dasherize(field.type)}-${dasherize(field.id)} .d-editor-input`; this.editorInputClass = `.${dasherize(field.type)}-${dasherize(
field.id
)} .d-editor-input`;
this._uppyInstance.on('file-added', (file) => { this._uppyInstance.on("file-added", () => {
this.session.set("wizardEventFieldId", field.id); this.session.set("wizardEventFieldId", field.id);
}); });
}, },

Datei anzeigen

@ -4,7 +4,7 @@ import { get, set } from "@ember/object";
import Mixin from "@ember/object/mixin"; import Mixin from "@ember/object/mixin";
import { deepEqual } from "discourse-common/lib/object"; import { deepEqual } from "discourse-common/lib/object";
var observedCache = []; let observedCache = [];
export default Mixin.create({ export default Mixin.create({
didInsertElement() { didInsertElement() {
@ -36,7 +36,7 @@ export default Mixin.create({
listProperties(componentType, opts).forEach((property) => { listProperties(componentType, opts).forEach((property) => {
if (observedCache.includes(property)) { if (observedCache.includes(property)) {
obj.removeObserver(property, this, this.toggleUndo); obj.removeObserver(property, this, this.toggleUndo);
observedCache = observedCache.filter(p => p !== property); observedCache = observedCache.filter((p) => p !== property);
} }
}); });
}, },