We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 294c35c commit dec670aCopy full SHA for dec670a
assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6
@@ -1,6 +1,7 @@
1
import DiscourseURL from "discourse/lib/url";
2
import { withPluginApi } from "discourse/lib/plugin-api";
3
import getUrl from "discourse-common/lib/get-url";
4
+import { observes } from "discourse-common/utils/decorators";
5
6
export default {
7
name: "custom-wizard-edits",
@@ -35,6 +36,16 @@ export default {
35
36
},
37
38
});
39
+
40
+ api.modifyClass("component:uppy-image-uploader", {
41
+ // Needed to ensure appEvents get registered when navigating between steps
42
+ @observes("id")
43
+ initOnStepChange() {
44
+ if (/wizard-field|wizard-step/.test(this.id)) {
45
+ this._initialize();
46
+ }
47
+ },
48
+ });
49
50
51
};
0 commit comments