From 21036bfba4182e5c864c60aad10591cc84faed9f Mon Sep 17 00:00:00 2001 From: Hoang Nguyen Date: Thu, 12 Dec 2019 00:24:02 +0700 Subject: [PATCH] iam: Account Cert Tab (#66) Fixes #46 Signed-off-by: Rohit Yadav --- ui/docs/api/apis.remaining | 3 - ui/src/components/view/DetailSettings.vue | 4 +- ui/src/components/view/ResourceView.vue | 7 +- ui/src/components/view/SettingsTab.vue | 18 +- ui/src/config/section/iam.js | 29 ++- ui/src/locales/en.json | 4 + ui/src/views/AutogenView.vue | 9 + ui/src/views/iam/SSLCertificateTab.vue | 250 ++++++++++++++++++++++ 8 files changed, 303 insertions(+), 21 deletions(-) create mode 100644 ui/src/views/iam/SSLCertificateTab.vue diff --git a/ui/docs/api/apis.remaining b/ui/docs/api/apis.remaining index 037204794107..4f4fc9d017c8 100644 --- a/ui/docs/api/apis.remaining +++ b/ui/docs/api/apis.remaining @@ -51,7 +51,6 @@ deletePrivateGateway deleteProjectInvitation deleteSecondaryStagingStore deleteSnapshotPolicies -deleteSslCert deleteStaticRoute deleteStorageNetworkIpRange deleteVlanIpRange @@ -101,7 +100,6 @@ listResourceLimits listSamlAuthorization listSecondaryStagingStores listSnapshotPolicies -listSslCerts listStaticRoutes listStorageNetworkIpRange listStorageProviders @@ -138,4 +136,3 @@ updateResourceLimit updateTrafficType updateVmNicIp updateVpnCustomerGateway -uploadSslCert diff --git a/ui/src/components/view/DetailSettings.vue b/ui/src/components/view/DetailSettings.vue index 0068b86dbdd7..fb7d90d51874 100644 --- a/ui/src/components/view/DetailSettings.vue +++ b/ui/src/components/view/DetailSettings.vue @@ -41,7 +41,7 @@ - {{ item.name }} + {{ item.name }} - {{ item.value }} + {{ item.value }}
diff --git a/ui/src/components/view/ResourceView.vue b/ui/src/components/view/ResourceView.vue index 23ae8ccc1d17..171d5583e154 100644 --- a/ui/src/components/view/ResourceView.vue +++ b/ui/src/components/view/ResourceView.vue @@ -37,7 +37,7 @@ :tab="$t(tab.name)" :key="tab.name" v-if="'show' in tab ? tab.show(resource, $route) : true"> - + @@ -76,6 +76,11 @@ export default { } } }, + data () { + return { + activeTab: '' + } + }, methods: { onTabChange (key) { this.activeTab = key diff --git a/ui/src/components/view/SettingsTab.vue b/ui/src/components/view/SettingsTab.vue index 385008ff6df7..a898e27a4185 100644 --- a/ui/src/components/view/SettingsTab.vue +++ b/ui/src/components/view/SettingsTab.vue @@ -1,5 +1,5 @@ + + + +