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();
|
this.close();
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
this.appEvents.trigger("composer:cancelled");
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -1338,6 +1339,7 @@ export default Controller.extend({
|
||||||
this._saveDraft();
|
this._saveDraft();
|
||||||
this.model.clearState();
|
this.model.clearState();
|
||||||
this.close();
|
this.close();
|
||||||
|
this.appEvents.trigger("composer:cancelled");
|
||||||
resolve();
|
resolve();
|
||||||
},
|
},
|
||||||
// needed to resume saving drafts if composer stays open
|
// needed to resume saving drafts if composer stays open
|
||||||
|
@ -1351,6 +1353,7 @@ export default Controller.extend({
|
||||||
this.close();
|
this.close();
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
this.appEvents.trigger("composer:cancelled");
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue