mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 10:41:45 +08:00
DEV: add composer cancelled event triggers (#16371)
This commit is contained in:
parent
ec2930712d
commit
e03593d75c
|
@ -1331,6 +1331,7 @@ export default Controller.extend({
|
|||
this.close();
|
||||
})
|
||||
.finally(() => {
|
||||
this.appEvents.trigger("composer:cancelled");
|
||||
resolve();
|
||||
});
|
||||
},
|
||||
|
@ -1338,6 +1339,7 @@ export default Controller.extend({
|
|||
this._saveDraft();
|
||||
this.model.clearState();
|
||||
this.close();
|
||||
this.appEvents.trigger("composer:cancelled");
|
||||
resolve();
|
||||
},
|
||||
// needed to resume saving drafts if composer stays open
|
||||
|
@ -1351,6 +1353,7 @@ export default Controller.extend({
|
|||
this.close();
|
||||
})
|
||||
.finally(() => {
|
||||
this.appEvents.trigger("composer:cancelled");
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user