Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-24 10:20:28 +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 Component from "@ember/component";
|
||||
import I18n from "I18n";
|
||||
import getUrl from "discourse-common/lib/get-url";
|
||||
import { htmlSafe } from "@ember/template";
|
||||
import { schedule } from "@ember/runloop";
|
||||
|
@ -11,8 +10,6 @@ import CustomWizard, {
|
|||
import { alias, not } from "@ember/object/computed";
|
||||
import discourseLater from "discourse-common/lib/later";
|
||||
|
||||
const alreadyWarned = {};
|
||||
|
||||
export default Component.extend({
|
||||
classNameBindings: [":wizard-step", "step.id"],
|
||||
saving: null,
|
||||
|
@ -199,7 +196,7 @@ export default Component.extend({
|
|||
|
||||
this.step.validate();
|
||||
|
||||
if (step.get("valid")) {
|
||||
if (this.step.get("valid")) {
|
||||
this.advance();
|
||||
} else {
|
||||
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) {
|
||||
|
|
Laden …
In neuem Issue referenzieren