mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
webui: hide (un)apply buttons for Default Trust View
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
parent
d3f46d4e78
commit
01a9e7ef9e
@ -185,7 +185,17 @@ return {
|
||||
target_entity: 'host',
|
||||
target_facet: 'details'
|
||||
}
|
||||
]
|
||||
],
|
||||
state: {
|
||||
evaluators: [
|
||||
{
|
||||
$factory: mod_details.value_state_evaluator,
|
||||
attribute: 'cn',
|
||||
value: idviews.DEFAULT_TRUST_VIEW,
|
||||
representation: 'cn_default_trust_view'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -406,6 +416,7 @@ idviews.apply_action = function(spec) {
|
||||
spec = spec || {};
|
||||
spec.name = spec.name || 'idview_apply';
|
||||
spec.label = spec.label || '@i18n:objects.idview.apply_hosts';
|
||||
spec.hide_cond = spec.hide_cond || ['cn_default_trust_view'];
|
||||
|
||||
var that = IPA.action(spec);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user