2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FEATURE: replace period-chooser by a select-kit component

This commit is contained in:
Joffrey JAFFEUX 2018-01-15 11:55:16 +01:00 committed by GitHub
parent bd7e21fa99
commit ec2ce8f763
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 110 additions and 138 deletions

View file

@ -1,4 +1,4 @@
const { isNone } = Ember;
const { isNone, run } = Ember;
import computed from "ember-addons/ember-computed-decorators";
import UtilsMixin from "select-kit/mixins/utils";
import DomHelpersMixin from "select-kit/mixins/dom-helpers";
@ -246,9 +246,9 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
_boundaryActionHandler(actionName, ...params) {
if (Ember.get(this.actions, actionName)) {
this.send(actionName, ...params);
run.next(() => this.send(actionName, ...params));
} else if (this.get(actionName)) {
this.get(actionName)();
run.next(() => this.get(actionName)());
}
},