mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-5840: UI > Secondary Storages > remove "prepareObjectStoreMigration" action (since prepareSecondaryStorageForMigration API has been removed from server-side).
This commit is contained in:
parent
5bf78b82c0
commit
a2b3e3a60d
@ -17052,37 +17052,6 @@
|
|||||||
name: 'Secondary storage details',
|
name: 'Secondary storage details',
|
||||||
isMaximized: true,
|
isMaximized: true,
|
||||||
actions: {
|
actions: {
|
||||||
prepareObjectStoreMigration: {
|
|
||||||
label: 'Prepare Object Store Migration',
|
|
||||||
messages: {
|
|
||||||
confirm: function (args) {
|
|
||||||
return 'Please confirm you want to prepare migration of secondary storage to object store.';
|
|
||||||
},
|
|
||||||
notification: function (args) {
|
|
||||||
return 'Prepare Object Store Migration';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
action: function (args) {
|
|
||||||
$.ajax({
|
|
||||||
url: createURL('prepareSecondaryStorageForMigration'),
|
|
||||||
data: {
|
|
||||||
id: args.context.secondaryStorage[0].id
|
|
||||||
},
|
|
||||||
success: function (json) {
|
|
||||||
var jid = json.preparesecondarystorageformigrationresponse.jobid;
|
|
||||||
args.response.success({
|
|
||||||
_custom: {
|
|
||||||
jobId: jid
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
notification: {
|
|
||||||
poll: pollAsyncJobResult
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
remove: {
|
remove: {
|
||||||
label: 'label.action.delete.secondary.storage',
|
label: 'label.action.delete.secondary.storage',
|
||||||
messages: {
|
messages: {
|
||||||
@ -18621,13 +18590,8 @@
|
|||||||
|
|
||||||
var secondarystorageActionfilter = function (args) {
|
var secondarystorageActionfilter = function (args) {
|
||||||
var jsonObj = args.context.item;
|
var jsonObj = args.context.item;
|
||||||
var allowedActions =[];
|
var allowedActions = [];
|
||||||
allowedActions.push("remove");
|
allowedActions.push("remove");
|
||||||
|
|
||||||
if (jsonObj.providername == 'NFS') {
|
|
||||||
allowedActions.push("prepareObjectStoreMigration");
|
|
||||||
}
|
|
||||||
|
|
||||||
return allowedActions;
|
return allowedActions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -381,12 +381,6 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
prepareObjectStoreMigration: function($detailView, args) {
|
|
||||||
var tab = args.tabs[args.activeTab];
|
|
||||||
var isMultiple = tab.multiple;
|
|
||||||
uiActions.remove($detailView, args);
|
|
||||||
},
|
|
||||||
|
|
||||||
destroy: function($detailView, args) {
|
destroy: function($detailView, args) {
|
||||||
var tab = args.tabs[args.activeTab];
|
var tab = args.tabs[args.activeTab];
|
||||||
var isMultiple = tab.multiple;
|
var isMultiple = tab.multiple;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user