mirror of https://github.com/rancher/ui.git
16 lines
351 B
JavaScript
16 lines
351 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
tagName : 'button',
|
|
classNames : ['btn', 'btn-sm', 'btn-default'],
|
|
icon : null,
|
|
text : null,
|
|
options : null,
|
|
|
|
click() {
|
|
var options = this.get('options');
|
|
|
|
this.get('router').transitionTo(options.route, {queryParams: options.options});
|
|
},
|
|
});
|