root / snf-cyclades-app / synnefo / ui / new_ui / ui / app / metadata.js @ be5195f3
History | View | Annotate | Download (2.5 kB)
1 |
var actionsMetaNetwork = {
|
---|---|
2 |
'destroy': {
|
3 |
title: 'destroy', |
4 |
act: 'destroy-network-modal', |
5 |
spanCls: 'snf-switch', |
6 |
controller: 'network' |
7 |
}, |
8 |
|
9 |
}; |
10 |
|
11 |
var actionsMetaVm = {
|
12 |
'start': {
|
13 |
title: 'start me now', |
14 |
act: 'start-vm-modal', |
15 |
spanCls: 'snf-switch', |
16 |
controller: 'vm', |
17 |
}, |
18 |
'destroy': {
|
19 |
title: 'destroy', |
20 |
act: 'destroy-vm-modal', |
21 |
spanCls: 'snf-trash-outline', |
22 |
controller: 'vm', |
23 |
}, |
24 |
'reboot': {
|
25 |
title: 'reboot', |
26 |
act: 'reboot-vm-modal', |
27 |
spanCls: 'snf-refresh-outline', |
28 |
controller: 'vm', |
29 |
}, |
30 |
'shutdown': {
|
31 |
title: 'shutdown', |
32 |
act: 'shutdown-vm-modal', |
33 |
spanCls: 'snf-pc-broken-full', |
34 |
controller: 'vm', |
35 |
}, |
36 |
}; |
37 |
|
38 |
var actionsMetaVolume = {
|
39 |
'destroy': {
|
40 |
title: 'destroy', |
41 |
act: 'destroy-volume-modal', |
42 |
spanCls: 'snf-switch', |
43 |
controller: 'volume' |
44 |
}, |
45 |
}; |
46 |
|
47 |
|
48 |
var statusText ={
|
49 |
'off' : 'STOPPED', |
50 |
'error' : 'ERROR', |
51 |
'building' : 'BUILDING', |
52 |
'running' : 'RUNNING', |
53 |
'rebooting': 'REBOOTING', |
54 |
'starting' : 'STARTING', |
55 |
'shutting' : 'SHUTTING DOWN', |
56 |
}; |
57 |
|
58 |
|
59 |
var statusActionsVm = {
|
60 |
'off' : {
|
61 |
enabledActions : ['start', 'destroy'], |
62 |
}, |
63 |
'error' : {
|
64 |
enabledActions : ['destroy'], |
65 |
}, |
66 |
'building' : {
|
67 |
enabledActions : [],
|
68 |
}, |
69 |
'running' : {
|
70 |
enabledActions : ['reboot', 'shutdown', 'destroy'], |
71 |
}, |
72 |
'rebooting' : {
|
73 |
enabledActions : ['destroy'], |
74 |
}, |
75 |
'starting' : {
|
76 |
enabledActions : ['destroy'], |
77 |
}, |
78 |
'shutting' : {
|
79 |
enabledActions : ['destroy'], |
80 |
}, |
81 |
}; |
82 |
|
83 |
|
84 |
var statusActionsNetwork = {
|
85 |
'off' : {
|
86 |
enabledActions : ['destroy'], |
87 |
}, |
88 |
'error' : {
|
89 |
enabledActions : ['destroy'], |
90 |
}, |
91 |
'building' : {
|
92 |
enabledActions : [],
|
93 |
}, |
94 |
'running' : {
|
95 |
enabledActions : ['destroy'], |
96 |
}, |
97 |
'starting' : {
|
98 |
enabledActions : ['destroy'], |
99 |
}, |
100 |
'shutting' : {
|
101 |
enabledActions : ['destroy'], |
102 |
}, |
103 |
}; |
104 |
|
105 |
|
106 |
var statusActionsVolume = {
|
107 |
'off' : {
|
108 |
enabledActions : ['destroy'], |
109 |
}, |
110 |
'error' : {
|
111 |
enabledActions : ['destroy'], |
112 |
}, |
113 |
'building' : {
|
114 |
enabledActions : [],
|
115 |
}, |
116 |
'running' : {
|
117 |
enabledActions : ['destroy'], |
118 |
}, |
119 |
'starting' : {
|
120 |
enabledActions : ['destroy'], |
121 |
}, |
122 |
'shutting' : {
|
123 |
enabledActions : ['destroy'], |
124 |
}, |
125 |
}; |
126 |
|
127 |
|