UX: prevent post submission when uploading
This commit is contained in:
parent
97116c9276
commit
fd62909819
|
@ -404,13 +404,15 @@ export default Ember.Controller.extend({
|
|||
disableSubmit: Ember.computed.or("model.loading", "isUploading"),
|
||||
|
||||
save(force) {
|
||||
const composer = this.get('model');
|
||||
if (this.get("disableSubmit")) return;
|
||||
|
||||
// Clear the warning state if we're not showing the checkbox anymore
|
||||
if (!this.get('showWarning')) {
|
||||
this.set('model.isWarning', false);
|
||||
}
|
||||
|
||||
const composer = this.get('model');
|
||||
|
||||
if (composer.get('cantSubmitPost')) {
|
||||
this.set('lastValidatedAt', Date.now());
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue