mirror of https://github.com/rancher/ui.git
20 lines
413 B
JavaScript
20 lines
413 B
JavaScript
import Ember from 'ember';
|
|
import ManageLabels from 'ui/mixins/manage-labels';
|
|
|
|
export default Ember.Component.extend(ManageLabels, {
|
|
// Inputs
|
|
initialLabels: null,
|
|
defaultLabels: 'user',
|
|
|
|
tagName: '',
|
|
|
|
didInitAttrs() {
|
|
this.initLabels(this.get('initialLabels'), this.get('defaultLabels'));
|
|
this.labelsChanged();
|
|
},
|
|
|
|
updateLabels(labels) {
|
|
this.sendAction('setLabels', labels);
|
|
},
|
|
});
|