|
Lines 79-91
Link Here
|
| 79 |
name: 'activate', |
79 |
name: 'activate', |
| 80 |
label: _('Activate'), |
80 |
label: _('Activate'), |
| 81 |
isStandardAction: true, |
81 |
isStandardAction: true, |
| 82 |
canExecute: function(item) { return item.mountPoint != '/' && !item.inUse; }, |
82 |
canExecute: function(item) { return !item.inUse; }, |
| 83 |
callback: lang.hitch(this, 'activateQuota') |
83 |
callback: lang.hitch(this, 'activateQuota') |
| 84 |
}, { |
84 |
}, { |
| 85 |
name: 'deactivate', |
85 |
name: 'deactivate', |
| 86 |
label: _('Deactivate'), |
86 |
label: _('Deactivate'), |
| 87 |
isStandardAction: true, |
87 |
isStandardAction: true, |
| 88 |
canExecute: function(item) { return item.mountPoint != '/' && item.inUse; }, |
88 |
canExecute: function(item) { return item.inUse; }, |
| 89 |
callback: lang.hitch(this, 'activateQuota') |
89 |
callback: lang.hitch(this, 'activateQuota') |
| 90 |
}, { |
90 |
}, { |
| 91 |
name: 'edit', |
91 |
name: 'edit', |
|
Lines 93-105
Link Here
|
| 93 |
iconClass: 'umcIconEdit', |
93 |
iconClass: 'umcIconEdit', |
| 94 |
isStandardAction: true, |
94 |
isStandardAction: true, |
| 95 |
isMultiAction: false, |
95 |
isMultiAction: false, |
| 96 |
canExecute: function(item) { |
96 |
canExecute: function(item) { return item.inUse; }, |
| 97 |
if (item.inUse === true && item.mountPoint != '/') { |
|
|
| 98 |
return true; |
| 99 |
} else { |
| 100 |
return false; |
| 101 |
} |
| 102 |
}, |
| 103 |
callback: lang.hitch(this, function(partitionDevice) { |
97 |
callback: lang.hitch(this, function(partitionDevice) { |
| 104 |
this.createPageContainer(partitionDevice[0]); |
98 |
this.createPageContainer(partitionDevice[0]); |
| 105 |
}) |
99 |
}) |