|
91 | 91 | :rowKey="record => record.datastoreId"> |
92 | 92 | <template #bodyCell="{ text, record, column }"> |
93 | 93 | <template v-if="column.dataIndex === 'datastore' && record.datastoreId"> |
94 | | - <router-link :to="{ path: '/storagepool/' + encodeURIComponent(record.datastoreId) }"> |
| 94 | + <router-link :to="{ path: '/storagepool/' + encodeURIComponent(record.datastoreId) }"> |
95 | 95 | {{ text }} |
96 | 96 | </router-link> |
97 | 97 | </template> |
|
107 | 107 | :rowKey="record => record.datastoreId"> |
108 | 108 | <template #bodyCell="{ text, record, column }"> |
109 | 109 | <template v-if="column.dataIndex === 'datastore' && record.datastoreId"> |
110 | | - <router-link :to="{ path: '/imagestore/' + record.datastoreId }"> |
| 110 | + <router-link :to="{ path: '/imagestore/' + record.datastoreId }"> |
111 | 111 | {{ text }} |
112 | 112 | </router-link> |
113 | 113 | </template> |
|
217 | 217 | <a-alert type="error"> |
218 | 218 | <template #message> |
219 | 219 | <exclamation-circle-outlined style="color: red; fontSize: 30px; display: inline-flex" /> |
220 | | - <span style="padding-left: 5px" v-html="`<b>${selectedRowKeys.length} ` + $t('label.items.selected') + `. </b>`" /> |
| 220 | + <span |
| 221 | + style="padding-left: 5px" |
| 222 | + v-html="`<b>${selectedRowKeys.length} ` + $t('label.items.selected') + `. </b>`" /> |
221 | 223 | <span v-html="$t(message.confirmMessage)" /> |
222 | 224 | </template> |
223 | 225 | </a-alert> |
@@ -391,10 +393,10 @@ export default { |
391 | 393 | }, |
392 | 394 | computed: { |
393 | 395 | isActionsOnTemplatePermitted () { |
394 | | - return (['Admin'].includes(this.$store.getters.userInfo.roletype) || // If admin or owner or belongs to current project |
| 396 | + return (['Admin'].includes(this.$store.getters.userInfo.roletype) || |
395 | 397 | (this.resource.domainid === this.$store.getters.userInfo.domainid && this.resource.account === this.$store.getters.userInfo.account) || |
396 | 398 | (this.resource.domainid === this.$store.getters.userInfo.domainid && this.resource.projectid && this.$store.getters.project && this.$store.getters.project.id && this.resource.projectid === this.$store.getters.project.id)) && |
397 | | - (this.resource.isready || !this.resource.status || this.resource.status.indexOf('Downloaded') === -1) && // Template is ready or downloaded |
| 399 | + (this.resource.isready || !this.resource.status || this.resource.status.indexOf('Downloaded') === -1) && |
398 | 400 | this.resource.templatetype !== 'SYSTEM' |
399 | 401 | } |
400 | 402 | }, |
@@ -476,7 +478,7 @@ export default { |
476 | 478 | this.showTable = false |
477 | 479 | this.fetchData() |
478 | 480 | if (this.dataSource.length === 0) { |
479 | | - this.$router.go(-1) |
| 481 | + this.$router.push({ path: '/template' }) |
480 | 482 | } |
481 | 483 | }, |
482 | 484 | getOkProps () { |
|
0 commit comments