|
70 | 70 | <router-link v-if="record.virtualmachineid" :to="{ path: '/vm/' + record.virtualmachineid }">{{ record.displayname }}</router-link> |
71 | 71 | <span v-else>{{ record.displayname }}</span> |
72 | 72 | </template> |
| 73 | + <template v-else-if="column.key === 'created'"> |
| 74 | + <span>{{ $toLocaleDate(record.created) }}</span> |
| 75 | + </template> |
73 | 76 | </template> |
74 | 77 | </a-table> |
75 | 78 | <div class="instances-card-footer"> |
@@ -125,55 +128,65 @@ export default { |
125 | 128 | }, |
126 | 129 | data () { |
127 | 130 | const columns = [ |
| 131 | + { |
| 132 | + key: 'created', |
| 133 | + title: this.$t('label.created'), |
| 134 | + dataIndex: 'created' |
| 135 | + }, |
128 | 136 | { |
129 | 137 | key: 'displayname', |
130 | | - title: 'VM Display Name', |
| 138 | + title: this.$t('label.displayname'), |
131 | 139 | dataIndex: 'displayname' |
132 | 140 | }, |
133 | 141 | { |
134 | 142 | key: 'convertinstancehostid', |
135 | | - title: 'Conversion Host', |
| 143 | + title: this.$t('label.conversionhost'), |
136 | 144 | dataIndex: 'convertinstancehostid' |
137 | 145 | }, |
138 | 146 | { |
139 | 147 | key: 'step', |
140 | | - title: 'Current Step', |
| 148 | + title: this.$t('label.currentstep'), |
141 | 149 | dataIndex: 'step' |
142 | 150 | }, |
143 | 151 | { |
144 | 152 | key: 'stepduration', |
145 | | - title: 'Current Step Duration', |
| 153 | + title: this.$t('label.currentstep.duration'), |
146 | 154 | dataIndex: 'stepduration' |
147 | 155 | }, |
148 | 156 | { |
149 | 157 | key: 'description', |
150 | | - title: 'Description', |
| 158 | + title: this.$t('label.description'), |
151 | 159 | dataIndex: 'description' |
152 | 160 | }, |
153 | 161 | { |
154 | 162 | key: 'duration', |
155 | | - title: 'Total Duration', |
| 163 | + title: this.$t('label.totalduration'), |
156 | 164 | dataIndex: 'duration' |
157 | 165 | }, |
158 | 166 | { |
159 | 167 | key: 'sourcevmname', |
160 | | - title: 'Source VM Name', |
| 168 | + title: this.$t('label.sourcevmname'), |
161 | 169 | dataIndex: 'sourcevmname' |
162 | 170 | }, |
163 | 171 | { |
164 | 172 | key: 'vcenter', |
165 | | - title: 'vCenter', |
| 173 | + title: this.$t('label.vcenter'), |
166 | 174 | dataIndex: 'vcenter' |
167 | 175 | }, |
168 | 176 | { |
169 | 177 | key: 'datacentername', |
170 | | - title: 'Datacenter Name', |
| 178 | + title: this.$t('label.vcenter.datacenter'), |
171 | 179 | dataIndex: 'datacentername' |
| 180 | + }, |
| 181 | + { |
| 182 | + key: 'state', |
| 183 | + title: this.$t('label.state'), |
| 184 | + dataIndex: 'state' |
172 | 185 | } |
173 | 186 | ] |
174 | 187 | return { |
175 | 188 | columns, |
176 | | - filters: ['running', 'completed', 'failed'], |
| 189 | + filters: ['all', 'running', 'completed', 'failed'], |
177 | 190 | filterValue: 'running' |
178 | 191 | } |
179 | 192 | }, |
|
0 commit comments