From 2d0c31a91292b4cdf8365a0446387ffceb16af3c Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Wed, 16 Oct 2019 11:09:45 +0530 Subject: [PATCH] config: fix missing vpn users tab, review/fix icons Signed-off-by: Rohit Yadav --- ui/src/config/section/image.js | 4 ++-- ui/src/config/section/network.js | 24 ++++++++++++++++++++++++ ui/src/config/section/plugin.js | 1 - ui/src/config/section/storage.js | 4 ++-- 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/ui/src/config/section/image.js b/ui/src/config/section/image.js index 73eedada0ff..945979b164e 100644 --- a/ui/src/config/section/image.js +++ b/ui/src/config/section/image.js @@ -22,7 +22,7 @@ export default { }, { api: 'getUploadParamsForVolume', - icon: 'upload', + icon: 'cloud-upload', label: 'Upload Local Template', listView: true, popup: true, @@ -84,7 +84,7 @@ export default { }, { api: 'getUploadParamsForIso', - icon: 'upload', + icon: 'cloud-upload', label: 'Upload Local Iso', listView: true, popup: true, diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js index c27cfcd8c91..5d188e297b2 100644 --- a/ui/src/config/section/network.js +++ b/ui/src/config/section/network.js @@ -203,6 +203,30 @@ export default { } ] }, + { + name: 'vpnuser', + title: 'VPN Users', + icon: 'user', + permission: [ 'listVpnUsers' ], + columns: ['username', 'state', 'account', 'domain'], + details: ['username', 'state', 'account', 'domain'], + actions: [ + { + api: 'addVpnUser', + icon: 'plus', + label: 'Add VPN User', + listView: true, + args: ['username', 'password', 'domainid', 'account'] + }, + { + api: 'removeVpnUser', + icon: 'delete', + label: 'Delete VPN User', + dataView: true, + args: ['username', 'domainid', 'account'] + } + ] + }, { name: 'vpngateway', title: 'VPN Gateway', diff --git a/ui/src/config/section/plugin.js b/ui/src/config/section/plugin.js index 2bb4b9f63c2..8965d5ae333 100644 --- a/ui/src/config/section/plugin.js +++ b/ui/src/config/section/plugin.js @@ -2,7 +2,6 @@ export default { name: 'plugin', title: 'Plugins', icon: 'heat-map', - permission: [ 'quotaSummary', 'cloudianSsoLogin' ], children: [ { name: 'quota', diff --git a/ui/src/config/section/storage.js b/ui/src/config/section/storage.js index 2ecc781afa6..09211380aba 100644 --- a/ui/src/config/section/storage.js +++ b/ui/src/config/section/storage.js @@ -21,14 +21,14 @@ export default { listView: true }, { api: 'uploadVolume', - icon: 'cloud-upload', + icon: 'link', label: 'Upload Volume From URL', type: 'main', args: ['url', 'name', 'zoneid', 'format', 'diskofferingid', 'checksum'], listView: true }, { api: 'getUploadParamsForVolume', - icon: 'upload', + icon: 'cloud-upload', label: 'Upload Local Volume', listView: true, popup: true,