Skip to content

Commit ddb11b1

Browse files
committed
Merge remote-tracking branch 'apache/4.17' into main
2 parents d4d310c + 7d50b65 commit ddb11b1

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

tools/apidoc/gen_toc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def choose_category(fn):
221221
dirname, fn = os.path.split(f)
222222
if not fn.endswith('.xml'):
223223
continue
224-
if fn.endswith('Summary.xml'):
224+
if fn.endswith('Summary.xml') and fn != 'quotaSummary.xml':
225225
continue
226226
if fn.endswith('SummarySorted.xml'):
227227
continue

ui/src/components/view/ResourceLimitTab.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ export default {
8484
},
8585
watch: {
8686
resource: {
87-
deep: true,
8887
handler (newData) {
8988
if (!newData || !newData.id) {
9089
return

ui/src/config/section/infra/routers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default {
190190
},
191191
{
192192
api: 'migrateSystemVm',
193-
icon: 'drag',
193+
icon: 'drag-outlined',
194194
label: 'label.action.migrate.systemvm.to.ps',
195195
dataView: true,
196196
show: (record, store) => { return ['Stopped'].includes(record.state) && ['VMware'].includes(record.hypervisor) },

ui/src/views/image/IsoZones.vue

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export default {
206206
selectedColumns: [],
207207
filterColumns: ['Status', 'Ready'],
208208
showConfirmationAction: false,
209+
redirectOnFinish: true,
209210
message: {
210211
title: this.$t('label.action.bulk.delete.isos'),
211212
confirmMessage: this.$t('label.confirm.delete.isos')
@@ -340,6 +341,14 @@ export default {
340341
this.selectedRowKeys = []
341342
this.fetchData()
342343
if (this.dataSource.length === 0) {
344+
this.moveToPreviousView()
345+
this.redirectOnFinish = false
346+
}
347+
},
348+
async moveToPreviousView () {
349+
const lastPath = this.$router.currentRoute.value.fullPath
350+
const navigationResult = await this.$router.go(-1)
351+
if (navigationResult !== undefined || this.$router.currentRoute.value.fullPath === lastPath) {
343352
this.$router.go(-1)
344353
}
345354
},
@@ -372,14 +381,15 @@ export default {
372381
const jobId = json.deleteisoresponse.jobid
373382
eventBus.emit('update-job-details', { jobId, resourceId: null })
374383
const singleZone = (this.dataSource.length === 1)
384+
this.redirectOnFinish = true
375385
this.$pollJob({
376386
jobId,
377387
title: this.$t('label.action.delete.iso'),
378388
description: this.resource.name,
379389
successMethod: result => {
380390
if (singleZone) {
381-
if (this.selectedItems.length === 0) {
382-
this.$router.go(-1)
391+
if (this.selectedItems.length === 0 && this.redirectOnFinish) {
392+
this.moveToPreviousView()
383393
}
384394
} else {
385395
if (this.selectedItems.length === 0) {
@@ -388,6 +398,9 @@ export default {
388398
}
389399
if (this.selectedItems.length > 0) {
390400
eventBus.emit('update-resource-state', { selectedItems: this.selectedItems, resource: record.zoneid, state: 'success' })
401+
if (this.selectedItems.length === this.zones.length && this.redirectOnFinish) {
402+
this.moveToPreviousView()
403+
}
391404
}
392405
},
393406
errorMethod: () => {

0 commit comments

Comments
 (0)