mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 07:03:10 +08:00
FIX: Focus was being lost on error message popup when composing failed
This commit is contained in:
parent
32365fbc58
commit
952b345883
@ -258,7 +258,7 @@ export default DiscourseController.extend({
|
|||||||
}
|
}
|
||||||
}).catch(function(error) {
|
}).catch(function(error) {
|
||||||
composer.set('disableDrafts', false);
|
composer.set('disableDrafts', false);
|
||||||
bootbox.alert(error);
|
self.appEvents.one('composer:opened', () => bootbox.alert(error));
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.get('controllers.application.currentRouteName').split('.')[0] === 'topic' &&
|
if (this.get('controllers.application.currentRouteName').split('.')[0] === 'topic' &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user