From bab65c8a290a66d3528df1e780cc2988a9664fc8 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 24 Apr 2012 11:49:36 -0700 Subject: [PATCH] CS-14297: cloudstack 3.0 UI - Delete Primary Storage dialogbox - add "Force Remove" checkbox. --- ui/scripts/system.js | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 75d91fb06c6..e713e1eaa31 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -6641,17 +6641,25 @@ 'remove': { label: 'label.action.delete.primary.storage' , - messages: { - confirm: function(args) { - return 'message.action.delete.primary.storage'; - }, + messages: { notification: function(args) { return 'label.action.delete.primary.storage'; } - }, - action: function(args) { + }, + createForm: { + title: 'label.action.delete.primary.storage', + fields: { + isForced: { + label: 'force.remove', + isBoolean: true + } + } + }, + action: function(args) { + var array1 = []; + array1.push("&forced=" + (args.data.isForced == "on")); $.ajax({ - url: createURL("deleteStoragePool&id=" + args.context.primarystorages[0].id), + url: createURL("deleteStoragePool&id=" + args.context.primarystorages[0].id + array1.join("")), dataType: "json", async: true, success: function(json) {