|
32 | 32 | <template #icon><reload-outlined /></template> |
33 | 33 | {{ $t('label.refresh') }} |
34 | 34 | </a-button> |
35 | | - <a-switch |
36 | | - v-if="!dataView && ['vm', 'volume', 'zone', 'cluster', 'host', 'storagepool', 'managementserver'].includes($route.name)" |
37 | | - style="margin-left: 8px; min-height: 23px; margin-bottom: 3px" |
38 | | - :checked-children="$t('label.metrics')" |
39 | | - :un-checked-children="$t('label.metrics')" |
40 | | - :checked="$store.getters.metrics" |
41 | | - @change="(checked, event) => { $store.dispatch('SetMetrics', checked) }"/> |
42 | | - <a-switch |
43 | | - v-if="!projectView && hasProjectId" |
44 | | - style="margin-left: 8px; min-height: 23px; margin-bottom: 3px" |
45 | | - :checked-children="$t('label.projects')" |
46 | | - :un-checked-children="$t('label.projects')" |
47 | | - :checked="$store.getters.listAllProjects" |
48 | | - @change="(checked, event) => { $store.dispatch('SetListAllProjects', checked) }"/> |
49 | 35 | <a-tooltip placement="right"> |
50 | 36 | <template #title> |
51 | 37 | {{ $t('label.filterby') }} |
|
80 | 66 | </a-select-option> |
81 | 67 | </a-select> |
82 | 68 | </a-tooltip> |
| 69 | + <a-switch |
| 70 | + v-if="!dataView && ['vm', 'volume', 'zone', 'cluster', 'host', 'storagepool', 'managementserver'].includes($route.name)" |
| 71 | + style="margin-left: 8px; min-height: 23px; margin-bottom: 3.5px" |
| 72 | + :checked-children="$t('label.metrics')" |
| 73 | + :un-checked-children="$t('label.metrics')" |
| 74 | + :checked="$store.getters.metrics" |
| 75 | + @change="(checked, event) => { $store.dispatch('SetMetrics', checked) }"/> |
| 76 | + <a-switch |
| 77 | + v-if="!projectView && hasProjectId" |
| 78 | + style="margin-left: 8px; min-height: 23px; margin-bottom: 3.5px" |
| 79 | + :checked-children="$t('label.projects')" |
| 80 | + :un-checked-children="$t('label.projects')" |
| 81 | + :checked="$store.getters.listAllProjects" |
| 82 | + @change="(checked, event) => { $store.dispatch('SetListAllProjects', checked) }"/> |
83 | 83 | </template> |
84 | 84 | </breadcrumb> |
85 | 85 | </a-col> |
|
0 commit comments