mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 22:51:24 +08:00
REFACTOR: Migrate more legacy JS to ES6
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { default as computed, observes } from 'ember-addons/ember-computed-decorators';
|
||||
import InputValidation from 'discourse/models/input-validation';
|
||||
|
||||
export default Ember.Controller.extend({
|
||||
needs: ['modal'],
|
||||
@ -131,7 +132,7 @@ export default Ember.Controller.extend({
|
||||
options = { failed: true, reason: I18n.t("poll.ui_builder.help.options_count") };
|
||||
}
|
||||
|
||||
return Discourse.InputValidation.create(options);
|
||||
return InputValidation.create(options);
|
||||
},
|
||||
|
||||
_comboboxOptions(start_index, end_index) {
|
||||
|
Reference in New Issue
Block a user