mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-7339: Fix missing delete host action
Restore hidden remove host action, caused by misplaced preFilter function
This commit is contained in:
parent
e8e496187c
commit
eee93aef3d
@ -15864,14 +15864,14 @@
|
|||||||
return 'label.action.remove.host';
|
return 'label.action.remove.host';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
preFilter: function(args) { //bug to fix: preFilter is not picked up from here
|
|
||||||
if (!isAdmin()) {
|
|
||||||
args.$form.find('.form-item[rel=isForced]').hide();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
createForm: {
|
createForm: {
|
||||||
title: 'label.action.remove.host',
|
title: 'label.action.remove.host',
|
||||||
desc: 'message.action.remove.host',
|
desc: 'message.action.remove.host',
|
||||||
|
preFilter: function(args) { //bug to fix: preFilter is not picked up from here
|
||||||
|
if (!isAdmin()) {
|
||||||
|
args.$form.find('.form-item[rel=isForced]').hide();
|
||||||
|
}
|
||||||
|
},
|
||||||
fields: {
|
fields: {
|
||||||
isForced: {
|
isForced: {
|
||||||
label: 'force.remove',
|
label: 'force.remove',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user