|
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> |
|
139 | 139 | :pageSize="pageSize" |
140 | 140 | :total="itemCount" |
141 | 141 | :showTotal="total => `${$t('label.total')} ${total} ${$t('label.items')}`" |
142 | | - :pageSizeOptions="['10', '20', '40', '80', '100']" |
| 142 | + :pageSizeOptions="[ |
| 143 | + '10', |
| 144 | + '20', |
| 145 | + '40', |
| 146 | + '80', |
| 147 | + '100' |
| 148 | + ]" |
143 | 149 | @change="handleChangePage" |
144 | 150 | @showSizeChange="handleChangePageSize" |
145 | 151 | showSizeChanger> |
|
217 | 223 | <a-alert type="error"> |
218 | 224 | <template #message> |
219 | 225 | <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>`" /> |
| 226 | + <span |
| 227 | + style="padding-left: 5px" |
| 228 | + v-html="'<b>' + selectedRowKeys.length + ' ' + $t('label.items.selected') + '. </b>'" /> |
221 | 229 | <span v-html="$t(message.confirmMessage)" /> |
222 | 230 | </template> |
223 | 231 | </a-alert> |
@@ -391,10 +399,10 @@ export default { |
391 | 399 | }, |
392 | 400 | computed: { |
393 | 401 | isActionsOnTemplatePermitted () { |
394 | | - return (['Admin'].includes(this.$store.getters.userInfo.roletype) || // If admin or owner or belongs to current project |
| 402 | + return (['Admin'].includes(this.$store.getters.userInfo.roletype) || |
395 | 403 | (this.resource.domainid === this.$store.getters.userInfo.domainid && this.resource.account === this.$store.getters.userInfo.account) || |
396 | 404 | (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 |
| 405 | + (this.resource.isready || !this.resource.status || this.resource.status.indexOf('Downloaded') === -1) && |
398 | 406 | this.resource.templatetype !== 'SYSTEM' |
399 | 407 | } |
400 | 408 | }, |
|
0 commit comments