Skip to content

Commit 644a9bc

Browse files
author
Jessica Wang
committed
CLOUDSTACK-5840: UI > Secondary Storages > remove "prepareObjectStoreMigration" action (since prepareSecondaryStorageForMigration API has been removed from server-side).
1 parent 072581b commit 644a9bc

2 files changed

Lines changed: 3 additions & 45 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16145,38 +16145,7 @@
1614516145
detailView: {
1614616146
name: 'Secondary storage details',
1614716147
isMaximized: true,
16148-
actions: {
16149-
prepareObjectStoreMigration: {
16150-
label: 'Prepare Object Store Migration',
16151-
messages: {
16152-
confirm: function(args) {
16153-
return 'Please confirm you want to prepare migration of secondary storage to object store.';
16154-
},
16155-
notification: function(args) {
16156-
return 'Prepare Object Store Migration';
16157-
}
16158-
},
16159-
action: function(args) {
16160-
$.ajax({
16161-
url: createURL('prepareSecondaryStorageForMigration'),
16162-
data: {
16163-
id: args.context.secondaryStorage[0].id
16164-
},
16165-
success: function(json) {
16166-
var jid = json.preparesecondarystorageformigrationresponse.jobid;
16167-
args.response.success({
16168-
_custom: {
16169-
jobId: jid
16170-
}
16171-
});
16172-
}
16173-
});
16174-
},
16175-
notification: {
16176-
poll: pollAsyncJobResult
16177-
}
16178-
},
16179-
16148+
actions: {
1618016149
remove: {
1618116150
label: 'label.action.delete.secondary.storage',
1618216151
messages: {
@@ -17687,12 +17656,7 @@
1768717656
var secondarystorageActionfilter = function(args) {
1768817657
var jsonObj = args.context.item;
1768917658
var allowedActions = [];
17690-
allowedActions.push("remove");
17691-
17692-
if (jsonObj.providername == 'NFS') {
17693-
allowedActions.push("prepareObjectStoreMigration");
17694-
}
17695-
17659+
allowedActions.push("remove");
1769617660
return allowedActions;
1769717661
}
1769817662

‎ui/scripts/ui/widgets/detailView.js‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,7 @@
380380
}
381381
});
382382
},
383-
384-
prepareObjectStoreMigration: function($detailView, args) {
385-
var tab = args.tabs[args.activeTab];
386-
var isMultiple = tab.multiple;
387-
uiActions.remove($detailView, args);
388-
},
389-
383+
390384
destroy: function($detailView, args) {
391385
var tab = args.tabs[args.activeTab];
392386
var isMultiple = tab.multiple;

0 commit comments

Comments
 (0)