Revision a4a27935 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/controllers/vm.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/controllers/vm.js
1
var actionsMetaVm = {
2
    'start': {
3
        title: 'start me now',
4
        act: 'modalStart',
5
        spanCls: 'snf-switch',
6
    },
7
    'destroy': {
8
        title: 'destroy',
9
        act: 'modalDestroy',
10
        spanCls: 'snf-trash-outline',
11
    },
12
    'reboot': {
13
        title: 'reboot',
14
        act: 'modalReboot',
15
        spanCls: 'snf-refresh-outline',
16
    },
17
    'shutdown': {
18
        title: 'shutdown',
19
        act: 'modalShutdown',
20
        spanCls: 'snf-pc-broken-full',
21
    },
22
};
23

  
24

  
25 1
App.VmController = Ember.ObjectController.extend({
26 2

  
27 3
    needs: ['vms'],
......
35 11
    icon: 'snf-pc-full',
36 12

  
37 13
    codeName: 'vm',
14

  
15
    codeNameParent: function() {
16
        return this.codeName+'s';
17
    }.property(),
18

  
19
    codeNameChildInit: function() {
20
        return this.codeName+'init';
21
    }.property(),
38 22
    
39 23
    actionsMeta: function() {
40 24
        var enabledActions = this.get('model').get('enabledActions');

Also available in: Unified diff