open-consul/ui-v2/app/initializers/power-select.js

16 lines
372 B
JavaScript

import { get } from '@ember/object';
export function initialize(application) {
const PowerSelectComponent = application.resolveRegistration('component:power-select');
PowerSelectComponent.reopen({
updateState: function(changes) {
if (!get(this, 'isDestroyed')) {
return this._super(changes);
}
},
});
}
export default {
initialize,
};