You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/mixins/with-feedback.js

14 lines
353 B

import Mixin from '@ember/object/mixin';
import { inject as service } from '@ember/service';
import { get, set } from '@ember/object';
export default Mixin.create({
feedback: service('feedback'),
init: function() {
this._super(...arguments);
set(this, 'feedback', {
execute: get(this, 'feedback').execute.bind(this),
});
},
});