|
Lines 69-74
define([
Link Here
|
| 69 |
this._changeState(data, command, confirmMessage, errorMessage); |
69 |
this._changeState(data, command, confirmMessage, errorMessage); |
| 70 |
} |
70 |
} |
| 71 |
}), |
71 |
}), |
|
|
72 |
canExecute: function(item) { return !item.isRunning; }, |
| 73 |
enablingMode: 'some', |
| 72 |
isStandardAction: true, |
74 |
isStandardAction: true, |
| 73 |
isMultiAction: true |
75 |
isMultiAction: true |
| 74 |
}, { |
76 |
}, { |
|
Lines 82-87
define([
Link Here
|
| 82 |
this._changeState(data, command, confirmMessage, errorMessage); |
84 |
this._changeState(data, command, confirmMessage, errorMessage); |
| 83 |
} |
85 |
} |
| 84 |
}), |
86 |
}), |
|
|
87 |
canExecute: function(item) { return item.isRunning; }, |
| 88 |
enablingMode: 'some', |
| 85 |
isStandardAction: true, |
89 |
isStandardAction: true, |
| 86 |
isMultiAction: true |
90 |
isMultiAction: true |
| 87 |
}, { |
91 |
}, { |
|
Lines 95-100
define([
Link Here
|
| 95 |
this._changeState(data, command, confirmMessage, errorMessage); |
99 |
this._changeState(data, command, confirmMessage, errorMessage); |
| 96 |
} |
100 |
} |
| 97 |
}), |
101 |
}), |
|
|
102 |
canExecute: function(item) { return item.isRunning; }, |
| 103 |
enablingMode: 'some', |
| 98 |
isStandardAction: true, |
104 |
isStandardAction: true, |
| 99 |
isMultiAction: true |
105 |
isMultiAction: true |
| 100 |
}, { |
106 |
}, { |
|
Lines 106-111
define([
Link Here
|
| 106 |
var errorMessage = _('Could not change start type of the following services: '); |
112 |
var errorMessage = _('Could not change start type of the following services: '); |
| 107 |
this._changeState(data, command, confirmMessage, errorMessage); |
113 |
this._changeState(data, command, confirmMessage, errorMessage); |
| 108 |
}), |
114 |
}), |
|
|
115 |
canExecute: function(item) { return item.autostart !== 'yes'; }, |
| 116 |
enablingMode: 'some', |
| 109 |
isStandardAction: false, |
117 |
isStandardAction: false, |
| 110 |
isMultiAction: true |
118 |
isMultiAction: true |
| 111 |
}, { |
119 |
}, { |
|
Lines 117-122
define([
Link Here
|
| 117 |
var errorMessage = _('Could not change start type of the following services: '); |
125 |
var errorMessage = _('Could not change start type of the following services: '); |
| 118 |
this._changeState(data, command, confirmMessage, errorMessage); |
126 |
this._changeState(data, command, confirmMessage, errorMessage); |
| 119 |
}), |
127 |
}), |
|
|
128 |
canExecute: function(item) { return item.autostart !== 'manually'; }, |
| 129 |
enablingMode: 'some', |
| 120 |
isStandardAction: false, |
130 |
isStandardAction: false, |
| 121 |
isMultiAction: true |
131 |
isMultiAction: true |
| 122 |
}, { |
132 |
}, { |
|
Lines 128-133
define([
Link Here
|
| 128 |
var errorMessage = _('Could not change start type of the following services: '); |
138 |
var errorMessage = _('Could not change start type of the following services: '); |
| 129 |
this._changeState(data, command, confirmMessage, errorMessage); |
139 |
this._changeState(data, command, confirmMessage, errorMessage); |
| 130 |
}), |
140 |
}), |
|
|
141 |
canExecute: function(item) { return item.autostart !== 'no'; }, |
| 142 |
enablingMode: 'some', |
| 131 |
isStandardAction: false, |
143 |
isStandardAction: false, |
| 132 |
isMultiAction: true |
144 |
isMultiAction: true |
| 133 |
}]; |
145 |
}]; |