0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-28 03:40:29 +01:00
Dieser Commit ist enthalten in:
Angus McLeod 2024-02-23 11:39:12 +02:00
Ursprung e5359aa649
Commit 325feb78cc
2 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -1,6 +1,5 @@
import discourseComputed, { observes } from "discourse-common/utils/decorators"; import discourseComputed, { observes } from "discourse-common/utils/decorators";
import Component from "@ember/component"; import Component from "@ember/component";
import I18n from "I18n";
import getUrl from "discourse-common/lib/get-url"; import getUrl from "discourse-common/lib/get-url";
import { htmlSafe } from "@ember/template"; import { htmlSafe } from "@ember/template";
import { schedule } from "@ember/runloop"; import { schedule } from "@ember/runloop";
@ -11,8 +10,6 @@ import CustomWizard, {
import { alias, not } from "@ember/object/computed"; import { alias, not } from "@ember/object/computed";
import discourseLater from "discourse-common/lib/later"; import discourseLater from "discourse-common/lib/later";
const alreadyWarned = {};
export default Component.extend({ export default Component.extend({
classNameBindings: [":wizard-step", "step.id"], classNameBindings: [":wizard-step", "step.id"],
saving: null, saving: null,
@ -199,7 +196,7 @@ export default Component.extend({
this.step.validate(); this.step.validate();
if (step.get("valid")) { if (this.step.get("valid")) {
this.advance(); this.advance();
} else { } else {
this.autoFocus(); this.autoFocus();

Datei anzeigen

@ -42,7 +42,7 @@ export default DiscourseRoute.extend({
}, },
]; ];
this.dialog.dialog({ title, buttons, type: 'confirm' }); this.dialog.dialog({ title, buttons, type: "confirm" });
}, },
afterModel(model) { afterModel(model) {