mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
config: add actions for image, projects, monitor and iam
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
7b78f4d427
commit
b903d20d84
@ -28,6 +28,8 @@
|
|||||||
</a>
|
</a>
|
||||||
<a slot="ipaddress" slot-scope="text, record" href="javascript:;">
|
<a slot="ipaddress" slot-scope="text, record" href="javascript:;">
|
||||||
<router-link :to="{ path: $route.path + '/' + record.id }">{{ text }}</router-link>
|
<router-link :to="{ path: $route.path + '/' + record.id }">{{ text }}</router-link>
|
||||||
|
|
||||||
|
<a-tag v-if="record.issourcenat">source-nat</a-tag>
|
||||||
</a>
|
</a>
|
||||||
<a slot="vmname" slot-scope="text, record" href="javascript:;">
|
<a slot="vmname" slot-scope="text, record" href="javascript:;">
|
||||||
<router-link :to="{ path: '/vm/' + record.virtualmachineid }">{{ text }}</router-link>
|
<router-link :to="{ path: '/vm/' + record.virtualmachineid }">{{ text }}</router-link>
|
||||||
|
|||||||
@ -61,7 +61,7 @@ export default {
|
|||||||
label: 'label.action.stop.instance',
|
label: 'label.action.stop.instance',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
groupAction: true,
|
groupAction: true,
|
||||||
args: ['podid', 'clusterid', 'hostid'],
|
args: ['id'],
|
||||||
show: (record) => { return ['Running'].includes(record.state) }
|
show: (record) => { return ['Running'].includes(record.state) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -69,6 +69,7 @@ export default {
|
|||||||
icon: 'reload',
|
icon: 'reload',
|
||||||
label: 'label.action.reboot.instance',
|
label: 'label.action.reboot.instance',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
|
args: ['id'],
|
||||||
show: (record) => { return ['Running'].includes(record.state) }
|
show: (record) => { return ['Running'].includes(record.state) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -76,13 +77,14 @@ export default {
|
|||||||
icon: 'sync',
|
icon: 'sync',
|
||||||
label: 'label.reinstall.vm',
|
label: 'label.reinstall.vm',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: ['virtualmachineid']
|
args: ['virtualmachineid', 'templateid']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'createVMSnapshot',
|
api: 'createVMSnapshot',
|
||||||
icon: 'camera',
|
icon: 'camera',
|
||||||
label: 'Create VM Snapshot',
|
label: 'Create VM Snapshot',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
|
args: ['virtualmachineid', 'name', 'description', 'snapshotmemory', 'quiescevm'],
|
||||||
show: (record) => { return ['Running'].includes(record.state) }
|
show: (record) => { return ['Running'].includes(record.state) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -17,65 +17,51 @@ export default {
|
|||||||
icon: 'plus',
|
icon: 'plus',
|
||||||
label: 'label.add.user',
|
label: 'label.add.user',
|
||||||
listView: true,
|
listView: true,
|
||||||
args: [
|
args: ['username', 'password', 'password', 'email', 'firstname', 'lastname', 'timezone', 'account', 'domainid']
|
||||||
'username', 'password', 'email', 'firstname', 'lastname', 'timezone', 'domainid', 'account', 'accounttype'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateUser',
|
api: 'updateUser',
|
||||||
icon: 'edit',
|
icon: 'edit',
|
||||||
label: 'label.edit',
|
label: 'label.edit',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'username', 'email', 'firstname', 'lastname', 'timezone']
|
||||||
'id', 'username', 'email', 'firstname', 'lastname', 'timezone'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateUser',
|
api: 'updateUser',
|
||||||
icon: 'plus',
|
icon: 'key',
|
||||||
label: 'Change password',
|
label: 'Change Password',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'password', 'password']
|
||||||
'id', 'currentPassword', 'password'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'registerUserKeys',
|
api: 'registerUserKeys',
|
||||||
icon: 'register',
|
icon: 'file-protect',
|
||||||
label: 'Register user keys',
|
label: 'Generate Keys',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id']
|
||||||
'id'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
api: 'disableUser',
|
|
||||||
icon: 'disabled',
|
|
||||||
label: 'Disable user',
|
|
||||||
dataView: true,
|
|
||||||
hidden: (record) => { return record.resourcestate === 'Disabled' },
|
|
||||||
args: [
|
|
||||||
'id'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'enableUser',
|
api: 'enableUser',
|
||||||
icon: 'enabled',
|
icon: 'play-circle',
|
||||||
label: 'Enable user',
|
label: 'Enable User',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
hidden: (record) => { return record.resourcestate === 'Enabled' },
|
show: (record) => { return record.state === 'disabled' },
|
||||||
args: [
|
args: ['id']
|
||||||
'id'
|
},
|
||||||
]
|
{
|
||||||
|
api: 'disableUser',
|
||||||
|
icon: 'pause-circle',
|
||||||
|
label: 'Disable User',
|
||||||
|
dataView: true,
|
||||||
|
args: ['id'],
|
||||||
|
show: (record) => { return record.state === 'enabled' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'deleteUser',
|
api: 'deleteUser',
|
||||||
icon: 'delete',
|
icon: 'delete',
|
||||||
label: 'Delete user',
|
label: 'Delete user',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id']
|
||||||
'id'
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -92,57 +78,47 @@ export default {
|
|||||||
icon: 'plus',
|
icon: 'plus',
|
||||||
label: 'label.add.account',
|
label: 'label.add.account',
|
||||||
listView: true,
|
listView: true,
|
||||||
args: [
|
args: ['username', 'password', 'password', 'email', 'firstname', 'lastname', 'domainid', 'account', 'roleid', 'timezone', 'networkdomain']
|
||||||
'username', 'email', 'firstname', 'lastname', 'password', 'domainid', 'account', 'roleid', 'timezone', 'networkdomain'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateResourceLimit',
|
api: 'updateAccount',
|
||||||
icon: 'plus',
|
icon: 'edit',
|
||||||
label: 'Update resource limit',
|
label: 'label.update.account',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'newname', 'domainid', 'roleid', 'networkdomain', 'details']
|
||||||
'resourceType', 'max', 'domainid', 'account'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateResourceCount',
|
api: 'updateResourceCount',
|
||||||
icon: 'plus',
|
icon: 'sync',
|
||||||
label: 'Update resource count',
|
label: 'Update Resource Count',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['account', 'domainid']
|
||||||
'domainid', 'account'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
api: 'disableAccount',
|
|
||||||
icon: 'plus',
|
|
||||||
label: 'Disable account',
|
|
||||||
dataView: true,
|
|
||||||
hidden: (record) => { return record.resourcestate === 'Disabled' },
|
|
||||||
args: [
|
|
||||||
'lock', 'domainid', 'account'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'enableAccount',
|
api: 'enableAccount',
|
||||||
icon: 'plus',
|
icon: 'play-circle',
|
||||||
label: 'Enable account',
|
label: 'Enable Account',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
hidden: (record) => { return record.resourcestate === 'Enabled' },
|
show: (record) => { return record.state === 'disabled' || record.state === 'locked' },
|
||||||
args: [
|
args: ['id'],
|
||||||
'domainid', 'account'
|
params: { 'lock': 'false' }
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'disableAccount',
|
api: 'disableAccount',
|
||||||
icon: 'plus',
|
icon: 'pause-circle',
|
||||||
|
label: 'Disable Account',
|
||||||
|
dataView: true,
|
||||||
|
show: (record) => { return record.state === 'enabled' },
|
||||||
|
args: ['id'],
|
||||||
|
params: { 'lock': 'false' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'disableAccount',
|
||||||
|
icon: 'lock',
|
||||||
label: 'Lock account',
|
label: 'Lock account',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
hidden: (record) => { return record.resourcestate === 'Disabled' },
|
show: (record) => { return record.state === 'enabled' },
|
||||||
args: [
|
args: ['id', 'lock']
|
||||||
'lock', 'domainid', 'account'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'deleteAccount',
|
api: 'deleteAccount',
|
||||||
@ -170,39 +146,29 @@ export default {
|
|||||||
icon: 'plus',
|
icon: 'plus',
|
||||||
label: 'label.add.domain',
|
label: 'label.add.domain',
|
||||||
listView: true,
|
listView: true,
|
||||||
args: [
|
args: ['parentdomainid', 'name', 'networkdomain', 'domainid']
|
||||||
'parentdomainid', 'name', 'networkdomain', 'domainid'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateDomain',
|
api: 'updateDomain',
|
||||||
icon: 'edit',
|
icon: 'edit',
|
||||||
label: 'label.action.edit.domain',
|
label: 'label.action.edit.domain',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'name', 'networkdomain']
|
||||||
'id',
|
|
||||||
'networkdomain'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateResourceCount',
|
api: 'updateResourceCount',
|
||||||
icon: 'updateresourcecount',
|
icon: 'sync',
|
||||||
label: 'label.action.update.resource.count',
|
label: 'label.action.update.resource.count',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['domainid']
|
||||||
'domainid'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'deleteDomain',
|
api: 'deleteDomain',
|
||||||
icon: 'delete',
|
icon: 'delete',
|
||||||
label: 'label.delete.domain',
|
label: 'label.delete.domain',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
hidden: (record) => { return record.level === 0 },
|
show: (record) => { return record.level !== 0 },
|
||||||
args: [
|
args: ['id', 'cleanup']
|
||||||
'id',
|
|
||||||
'cleanup'
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -219,27 +185,21 @@ export default {
|
|||||||
icon: 'plus',
|
icon: 'plus',
|
||||||
label: 'Create Role',
|
label: 'Create Role',
|
||||||
listView: true,
|
listView: true,
|
||||||
args: [
|
args: ['name', 'description', 'type']
|
||||||
'name', 'description', 'type', 'tags', 'state', 'status', 'allocationstate'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateRole',
|
api: 'updateRole',
|
||||||
icon: 'edit',
|
icon: 'edit',
|
||||||
label: 'Edit role',
|
label: 'Edit Role',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'name', 'description', 'type']
|
||||||
'id', 'name', 'description'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'deleteRole',
|
api: 'deleteRole',
|
||||||
icon: 'delete',
|
icon: 'delete',
|
||||||
label: 'label.delete.role',
|
label: 'label.delete.role',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id']
|
||||||
'id'
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,34 +18,51 @@ export default {
|
|||||||
icon: 'plus',
|
icon: 'plus',
|
||||||
label: 'Create template',
|
label: 'Create template',
|
||||||
listView: true,
|
listView: true,
|
||||||
args: ['displaytext', 'format', 'hypervisor', 'name', 'ostypeid', 'url', 'account', 'bits', 'checksum', 'details', 'directdownload', 'domainid', 'isdynamicallyscalable', 'isextractable', 'isfeatured', 'ispublic', 'isrouting', 'passwordenabled', 'projectid', 'requireshvm', 'sshkeyenabled', 'templatetag', 'zoneid', 'zoneids']
|
args: ['url', 'name', 'displaytext', 'directdownload', 'zoneids', 'hypervisor', 'format', 'ostypeid', 'checksum', 'isextractable', 'passwordenabled', 'sshkeyenabled', 'isdynamicallyscalable', 'ispublic', 'isfeatured', 'isrouting', 'requireshvm']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateTemplatePermissions',
|
api: 'getUploadParamsForVolume',
|
||||||
|
icon: 'upload',
|
||||||
|
label: 'Upload Local Template',
|
||||||
|
listView: true,
|
||||||
|
popup: true,
|
||||||
|
component: () => import('@/views/storage/UploadLocalTemplate.vue')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'updateTemplate',
|
||||||
icon: 'edit',
|
icon: 'edit',
|
||||||
label: 'label.edit',
|
label: 'label.edit',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'name', 'displaytext', 'passwordenabled', 'sshkeyenabled', 'ostypeid', 'isdynamicallyscalable', 'isrouting']
|
||||||
'id', 'ispublic', 'isfeatured', 'isextractable'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'extractTemplate',
|
api: 'extractTemplate',
|
||||||
icon: 'plus',
|
icon: 'cloud-download',
|
||||||
label: 'Extract template',
|
label: 'Download Template',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'zoneid', 'mode']
|
||||||
'mode', 'id', 'zoneid'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateTemplatePermissions',
|
api: 'updateTemplatePermissions',
|
||||||
icon: 'plus',
|
icon: 'reconciliation',
|
||||||
label: 'Update template permissions',
|
label: 'Update template permissions',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'op', 'accounts', 'projectids']
|
||||||
'id', 'op', 'accounts'
|
},
|
||||||
]
|
{
|
||||||
|
api: 'copyTemplate',
|
||||||
|
icon: 'copy',
|
||||||
|
label: 'Copy Template',
|
||||||
|
args: ['id', 'sourcezoneid', 'destzoneids'],
|
||||||
|
dataView: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'deleteTemplate',
|
||||||
|
icon: 'delete',
|
||||||
|
label: 'Delete Template',
|
||||||
|
args: ['id', 'zoneid'],
|
||||||
|
dataView: true,
|
||||||
|
groupAction: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -63,27 +80,51 @@ export default {
|
|||||||
icon: 'plus',
|
icon: 'plus',
|
||||||
label: 'Register ISO',
|
label: 'Register ISO',
|
||||||
listView: true,
|
listView: true,
|
||||||
args: [
|
args: ['url', 'name', 'displaytext', 'directdownload', 'zoneid', 'bootable', 'ostypeid', 'isextractable', 'ispublic', 'isfeatured']
|
||||||
'name', 'displayText', 'url', 'zoneid', 'isextractable', 'bootable', 'directdownload', 'osTypeId', 'ispublic', 'isfeatured', 'checksum'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'updateIsoPermissions',
|
api: 'getUploadParamsForIso',
|
||||||
|
icon: 'upload',
|
||||||
|
label: 'Upload Local Iso',
|
||||||
|
listView: true,
|
||||||
|
popup: true,
|
||||||
|
component: () => import('@/views/storage/UploadLocalIso.vue')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'updateIso',
|
||||||
icon: 'edit',
|
icon: 'edit',
|
||||||
label: 'label.edit.iso',
|
label: 'label.edit',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'name', 'displaytext', 'bootable', 'ostypeid', 'isdynamicallyscalable', 'isrouting']
|
||||||
'id', 'ispublic', 'isfeatured', 'isextractable'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'extractIso',
|
api: 'extractIso',
|
||||||
icon: 'plus',
|
icon: 'cloud-download',
|
||||||
label: 'label.extract.iso',
|
label: 'Download ISO',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: [
|
args: ['id', 'zoneid', 'mode']
|
||||||
'mode', 'id'
|
},
|
||||||
]
|
{
|
||||||
|
api: 'updateIsoPermissions',
|
||||||
|
icon: 'reconciliation',
|
||||||
|
label: 'Update ISO Permissions',
|
||||||
|
dataView: true,
|
||||||
|
args: ['id', 'op', 'accounts', 'projectids']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'copyIso',
|
||||||
|
icon: 'copy',
|
||||||
|
label: 'Copy ISO',
|
||||||
|
args: ['id', 'sourcezoneid', 'destzoneids'],
|
||||||
|
dataView: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'deleteIso',
|
||||||
|
icon: 'delete',
|
||||||
|
label: 'Delete ISO',
|
||||||
|
args: ['id', 'zoneid'],
|
||||||
|
dataView: true,
|
||||||
|
groupAction: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,23 @@ export default {
|
|||||||
icon: 'schedule',
|
icon: 'schedule',
|
||||||
permission: [ 'listEvents' ],
|
permission: [ 'listEvents' ],
|
||||||
columns: ['username', 'description', 'state', 'level', 'type', 'account', 'domain', 'created'],
|
columns: ['username', 'description', 'state', 'level', 'type', 'account', 'domain', 'created'],
|
||||||
details: ['username', 'id', 'description', 'state', 'level', 'type', 'account', 'domain', 'created']
|
details: ['username', 'id', 'description', 'state', 'level', 'type', 'account', 'domain', 'created'],
|
||||||
|
actions: [
|
||||||
|
{
|
||||||
|
api: 'archiveEvents',
|
||||||
|
icon: 'book',
|
||||||
|
label: 'Archive Event',
|
||||||
|
dataView: true,
|
||||||
|
args: ['ids']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'deleteEvents',
|
||||||
|
icon: 'delete',
|
||||||
|
label: 'Delete Event',
|
||||||
|
dataView: true,
|
||||||
|
args: ['ids']
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'alert',
|
name: 'alert',
|
||||||
@ -18,7 +34,23 @@ export default {
|
|||||||
icon: 'flag',
|
icon: 'flag',
|
||||||
permission: [ 'listAlerts' ],
|
permission: [ 'listAlerts' ],
|
||||||
columns: ['name', 'description', 'type', 'sent'],
|
columns: ['name', 'description', 'type', 'sent'],
|
||||||
details: ['name', 'id', 'type', 'sent', 'description']
|
details: ['name', 'id', 'type', 'sent', 'description'],
|
||||||
|
actions: [
|
||||||
|
{
|
||||||
|
api: 'archiveAlerts',
|
||||||
|
icon: 'book',
|
||||||
|
label: 'Archive Alert',
|
||||||
|
dataView: true,
|
||||||
|
args: ['ids']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'deleteAlerts',
|
||||||
|
icon: 'delete',
|
||||||
|
label: 'Delete Alert',
|
||||||
|
dataView: true,
|
||||||
|
args: ['ids']
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -114,7 +114,7 @@ export default {
|
|||||||
icon: 'environment',
|
icon: 'environment',
|
||||||
permission: [ 'listPublicIpAddresses' ],
|
permission: [ 'listPublicIpAddresses' ],
|
||||||
resourceType: 'PublicIpAddress',
|
resourceType: 'PublicIpAddress',
|
||||||
columns: ['ipaddress', 'state', 'issourcenat', 'associatednetworkname', 'virtualmachinename', 'allocated', 'account', 'zonename'],
|
columns: ['ipaddress', 'state', 'associatednetworkname', 'virtualmachinename', 'allocated', 'account', 'zonename'],
|
||||||
details: ['ipaddress', 'id', 'associatednetworkname', 'virtualmachinename', 'networkid', 'issourcenat', 'isstaticnat', 'virtualmachinename', 'vmipaddress', 'vlan', 'allocated', 'account', 'zonename'],
|
details: ['ipaddress', 'id', 'associatednetworkname', 'virtualmachinename', 'networkid', 'issourcenat', 'isstaticnat', 'virtualmachinename', 'vmipaddress', 'vlan', 'allocated', 'account', 'zonename'],
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
@ -126,7 +126,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'enableStaticNat',
|
api: 'enableStaticNat',
|
||||||
icon: 'check-circle',
|
icon: 'plus-circle',
|
||||||
label: 'Enable Static NAT',
|
label: 'Enable Static NAT',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: ['ipaddressid', 'virtualmachineid', 'vmguestip'],
|
args: ['ipaddressid', 'virtualmachineid', 'vmguestip'],
|
||||||
@ -134,7 +134,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
api: 'disableStaticNat',
|
api: 'disableStaticNat',
|
||||||
icon: 'close-circle',
|
icon: 'minus-circle',
|
||||||
label: 'Disable Static NAT',
|
label: 'Disable Static NAT',
|
||||||
dataView: true,
|
dataView: true,
|
||||||
args: ['ipaddressid'],
|
args: ['ipaddressid'],
|
||||||
|
|||||||
@ -5,5 +5,44 @@ export default {
|
|||||||
permission: [ 'listProjects' ],
|
permission: [ 'listProjects' ],
|
||||||
resourceType: 'Project',
|
resourceType: 'Project',
|
||||||
columns: ['name', 'state', 'displaytext', 'account', 'domain'],
|
columns: ['name', 'state', 'displaytext', 'account', 'domain'],
|
||||||
details: ['name', 'id', 'displaytext', 'projectaccountname', 'vmtotal', 'cputotal', 'memorytotal', 'volumetotal', 'iptotal', 'vpctotal', 'templatetotal', 'primarystoragetotal', 'account', 'domain']
|
details: ['name', 'id', 'displaytext', 'projectaccountname', 'vmtotal', 'cputotal', 'memorytotal', 'volumetotal', 'iptotal', 'vpctotal', 'templatetotal', 'primarystoragetotal', 'account', 'domain'],
|
||||||
|
actions: [
|
||||||
|
{
|
||||||
|
api: 'createProject',
|
||||||
|
icon: 'plus',
|
||||||
|
label: 'New Project',
|
||||||
|
listView: true,
|
||||||
|
args: ['name', 'displaytext']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'updateProject',
|
||||||
|
icon: 'edit',
|
||||||
|
label: 'Edit Project',
|
||||||
|
dataView: true,
|
||||||
|
args: ['id', 'displaytext']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'activateProject',
|
||||||
|
icon: 'play-circle',
|
||||||
|
label: 'Activate Project',
|
||||||
|
dataView: true,
|
||||||
|
args: ['id'],
|
||||||
|
show: (record) => { return record.state === 'Suspended' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'suspendProject',
|
||||||
|
icon: 'pause-circle',
|
||||||
|
label: 'Suspend Project',
|
||||||
|
dataView: true,
|
||||||
|
args: ['id'],
|
||||||
|
show: (record) => { return record.state !== 'Suspended' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
api: 'deleteProject',
|
||||||
|
icon: 'delete',
|
||||||
|
label: 'Delete Project',
|
||||||
|
dataView: true,
|
||||||
|
args: ['id']
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ export default {
|
|||||||
multiTab: false, // enable to have tab/route history stuff
|
multiTab: false, // enable to have tab/route history stuff
|
||||||
// CloudStack options
|
// CloudStack options
|
||||||
apiBase: '/client/api',
|
apiBase: '/client/api',
|
||||||
helpUrl: 'http://docs.cloudstack.apache.org',
|
helpUrl: 'http://docs.cloudstack.apache.org/en/latest/',
|
||||||
appTitle: 'CloudStack',
|
appTitle: 'CloudStack',
|
||||||
// vue-ls options
|
// vue-ls options
|
||||||
storageOptions: {
|
storageOptions: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user