mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42: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';
|
||||
}
|
||||
},
|
||||
preFilter: function(args) { //bug to fix: preFilter is not picked up from here
|
||||
if (!isAdmin()) {
|
||||
args.$form.find('.form-item[rel=isForced]').hide();
|
||||
}
|
||||
},
|
||||
createForm: {
|
||||
title: 'label.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: {
|
||||
isForced: {
|
||||
label: 'force.remove',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user