mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
ui: fix ssh keypair navigation (#5931)
Fixes #5930 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
56a8852c4c
commit
966b32c234
@ -100,7 +100,7 @@
|
||||
<router-link :to="{ path: $route.path + '/' + record.name }" v-else>{{ $t(text.toLowerCase()) }}</router-link>
|
||||
</span>
|
||||
<span v-else>
|
||||
<router-link :to="{ path: $route.path + '/' + record.id }" v-if="record.id">{{ text }}</router-link>
|
||||
<router-link :to="{ path: $route.path + '/' + record.id }" v-if="record.id && $route.path !== '/ssh'">{{ text }}</router-link>
|
||||
<router-link :to="{ path: $route.path + '/' + record.name }" v-else>{{ text }}</router-link>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
@ -840,6 +840,10 @@ export default {
|
||||
this.loading = true
|
||||
if (this.$route.params && this.$route.params.id) {
|
||||
params.id = this.$route.params.id
|
||||
if (['listSSHKeyPairs'].includes(this.apiName)) {
|
||||
delete params.id
|
||||
params.name = this.$route.params.id
|
||||
}
|
||||
if (this.$route.path.startsWith('/vmsnapshot/')) {
|
||||
params.vmsnapshotid = this.$route.params.id
|
||||
} else if (this.$route.path.startsWith('/ldapsetting/')) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user