Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 11:52:54 +01:00
Minor fixes
Dieser Commit ist enthalten in:
Ursprung
e5359aa649
Commit
325feb78cc
2 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen
|
@ -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();
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Laden …
In neuem Issue referenzieren