mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
REFACTOR: Migrate more legacy JS to ES6
This commit is contained in:
parent
a546395397
commit
56f07529bb
20 changed files with 168 additions and 152 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue