mirror of https://github.com/hashicorp/consul
ui: add dcs to index
parent
4ac11b219d
commit
71ae55f665
|
@ -26,6 +26,13 @@ App.IndexRoute = Ember.Route.extend({
|
|||
model: function() {
|
||||
return window.fixtures.dcs;
|
||||
},
|
||||
|
||||
setupController: function(controller, model) {
|
||||
controller.set('content', model);
|
||||
|
||||
controller.set('dcs', window.fixtures.dcs);
|
||||
},
|
||||
|
||||
afterModel: function(dcs, transition) {
|
||||
if (dcs.get('length') === 1) {
|
||||
this.get('controllers.application').setDc(dcs[0])
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
a {
|
||||
button:active {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.no-margin {
|
||||
margin: 0;
|
||||
|
|
Loading…
Reference in New Issue