mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
ui: add dcs to index
This commit is contained in:
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…
x
Reference in New Issue
Block a user