summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/details.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/details.js')
-rw-r--r--install/ui/src/freeipa/details.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/install/ui/src/freeipa/details.js b/install/ui/src/freeipa/details.js
index e8f1e86d9..bd23e564e 100644
--- a/install/ui/src/freeipa/details.js
+++ b/install/ui/src/freeipa/details.js
@@ -238,21 +238,25 @@ IPA.details_facet = function(spec, no_init) {
IPA.update_action);
spec.control_buttons = spec.control_buttons || [];
+
+ if (!spec.no_update) {
+ spec.control_buttons.unshift(
+ {
+ name: 'reset',
+ label: IPA.messages.buttons.reset,
+ icon: 'reset-icon'
+ },
+ {
+ name: 'update',
+ label: IPA.messages.buttons.update,
+ icon: 'update-icon'
+ });
+ }
spec.control_buttons.unshift(
{
name: 'refresh',
label: IPA.messages.buttons.refresh,
icon: 'reset-icon'
- },
- {
- name: 'reset',
- label: IPA.messages.buttons.reset,
- icon: 'reset-icon'
- },
- {
- name: 'update',
- label: IPA.messages.buttons.update,
- icon: 'update-icon'
});
spec.state = spec.state || {};