summaryrefslogtreecommitdiffstats
path: root/install/ui/service.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/service.js')
-rw-r--r--install/ui/service.js32
1 files changed, 18 insertions, 14 deletions
diff --git a/install/ui/service.js b/install/ui/service.js
index f8e95f89..7db8a665 100644
--- a/install/ui/service.js
+++ b/install/ui/service.js
@@ -261,20 +261,24 @@ IPA.service_provisioning_status_widget = function (spec) {
dialog.container.append(IPA.messages.objects.service.unprovision_confirmation);
};
- dialog.add_button(IPA.messages.objects.service.unprovision, function() {
- var pkey = that.result['krbprincipalname'][0];
- IPA.command({
- entity: that.entity.name,
- method: 'disable',
- args: [pkey],
- on_success: function(data, text_status, xhr) {
- set_status('missing');
- dialog.close();
- },
- on_error: function(xhr, text_status, error_thrown) {
- dialog.close();
- }
- }).execute();
+ dialog.create_button({
+ name: 'unprovision',
+ label: IPA.messages.objects.service.unprovision,
+ click: function() {
+ var pkey = that.result['krbprincipalname'][0];
+ IPA.command({
+ entity: that.entity.name,
+ method: 'disable',
+ args: [pkey],
+ on_success: function(data, text_status, xhr) {
+ set_status('missing');
+ dialog.close();
+ },
+ on_error: function(xhr, text_status, error_thrown) {
+ dialog.close();
+ }
+ }).execute();
+ }
});
dialog.open(that.container);