mirror of https://github.com/rancher/ui.git
14 lines
383 B
JavaScript
14 lines
383 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Mixin.create({
|
|
actions: {
|
|
selectTab: function(name) {
|
|
this.set('context.tab',name);
|
|
this.$('.tab').removeClass('active');
|
|
this.$('.tab[data-section="'+name+'"]').addClass('active');
|
|
this.$('.section').addClass('hide');
|
|
this.$('.section[data-section="'+name+'"]').removeClass('hide');
|
|
}
|
|
}
|
|
});
|