consul/ui-v2/app/controllers/dc/services/instance.js

18 lines
568 B
JavaScript

import Controller from '@ember/controller';
import { set } from '@ember/object';
export default Controller.extend({
setProperties: function() {
this._super(...arguments);
// This method is called immediately after `Route::setupController`, and done here rather than there
// as this is a variable used purely for view level things, if the view was different we might not
// need this variable
set(this, 'selectedTab', 'service-checks');
},
actions: {
change: function(e) {
set(this, 'selectedTab', e.target.value);
},
},
});