Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / app / metadata.js @ faad3c72

History | View | Annotate | Download (3.2 kB)

1
var actionsMetaNetwork = {
2
    'start': {
3
        title: 'start',
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
var actionsMetaVm = {
25
    'start': {
26
        title: 'start me now',
27
        act: 'modalStart',
28
        spanCls: 'snf-switch',
29
    },
30
    'destroy': {
31
        title: 'destroy',
32
        act: 'modalDestroy',
33
        spanCls: 'snf-trash-outline',
34
    },
35
    'reboot': {
36
        title: 'reboot',
37
        act: 'modalReboot',
38
        spanCls: 'snf-refresh-outline',
39
    },
40
    'shutdown': {
41
        title: 'shutdown',
42
        act: 'modalShutdown',
43
        spanCls: 'snf-pc-broken-full',
44
    },
45
};
46

    
47
var actionsMetaVolume = {
48
    'start': {
49
        title: 'start me now',
50
        act: 'modalStart',
51
        spanCls: 'snf-switch',
52
    },
53
    'destroy': {
54
        title: 'destroy',
55
        act: 'modalDestroy',
56
        spanCls: 'snf-trash-outline',
57
    },
58
    'reboot': {
59
        title: 'reboot',
60
        act: 'modalReboot',
61
        spanCls: 'snf-refresh-outline',
62
    },
63
    'shutdown': {
64
        title: 'shutdown',
65
        act: 'modalShutdown',
66
        spanCls: 'snf-pc-broken-full',
67
    },
68
};
69

    
70

    
71
var statusText ={
72
    'off'      : 'STOPPED',
73
    'error'    : 'ERROR',
74
    'building' : 'BUILDING',
75
    'running'  : 'RUNNING',
76
    'rebooting': 'REBOOTING',
77
    'starting' : 'STARTING',
78
    'shutting' : 'SHUTTING DOWN',
79
};
80

    
81

    
82
var statusActionsVm = {
83
    'off'      : {
84
        enabledActions : ['start', 'destroy'],
85
    },
86
    'error'      : {
87
        enabledActions : ['destroy'],
88
    },
89
    'building'      : {
90
        enabledActions : [],
91
    },
92
    'running'      : {
93
        enabledActions : ['reboot', 'shutdown', 'destroy'],
94
    },
95
    'rebooting'      : {
96
        enabledActions : ['destroy'],
97
    },
98
    'starting'      : {
99
        enabledActions : ['destroy'],
100
    },
101
    'shutting'      : {
102
        enabledActions : ['destroy'],
103
    },
104
};
105

    
106

    
107
var statusActionsNetwork = {
108
    'off'      : {
109
        enabledActions : ['start', 'destroy'],
110
    },
111
    'error'      : {
112
        enabledActions : ['destroy'],
113
    },
114
    'building'      : {
115
        enabledActions : [],
116
    },
117
    'running'      : {
118
        enabledActions : ['reboot', 'shutdown', 'destroy'],
119
    },
120
    'rebooting'      : {
121
        enabledActions : ['destroy'],
122
    },
123
    'starting'      : {
124
        enabledActions : ['destroy'],
125
    },
126
    'shutting'      : {
127
        enabledActions : ['destroy'],
128
    },
129
};
130

    
131

    
132
var statusActionsVolume = {
133
    'off'      : {
134
        enabledActions : ['start', 'destroy'],
135
    },
136
    'error'      : {
137
        enabledActions : ['destroy'],
138
    },
139
    'building'      : {
140
        enabledActions : [],
141
    },
142
    'running'      : {
143
        enabledActions : ['reboot', 'shutdown', 'destroy'],
144
    },
145
    'rebooting'      : {
146
        enabledActions : ['destroy'],
147
    },
148
    'starting'      : {
149
        enabledActions : ['destroy'],
150
    },
151
    'shutting'      : {
152
        enabledActions : ['destroy'],
153
    },
154
};
155

    
156