Loading client/src/components/User/DiskUsage/Management/Cleanup/ReviewCleanupDialog.test.js +5 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,11 @@ const FAKE_OPERATION = () => { }; async function mountReviewCleanupDialogWith(operation, totalItems = EXPECTED_TOTAL_ITEMS) { const wrapper = mount(ReviewCleanupDialog, { propsData: { operation, totalItems, show: true } }, localVue); const wrapper = mount( ReviewCleanupDialog, { propsData: { operation, totalItems, show: true, modalStatic: true } }, localVue ); await flushPromises(); return wrapper; } Loading client/src/components/User/DiskUsage/Management/Cleanup/ReviewCleanupDialog.vue +14 −1 Original line number Diff line number Diff line <template> <b-modal id="review-cleanup-dialog" v-model="showDialog" title-tag="h2" centered static @show="onShowModal"> <b-modal id="review-cleanup-dialog" v-model="showDialog" title-tag="h2" :static="modalStatic" centered @show="onShowModal"> <template v-slot:modal-title> {{ title }} <span class="text-primary h3">{{ totalItems }}<span v-if="rowLimitReached">+</span> items</span> Loading Loading @@ -98,6 +104,10 @@ export default { type: Boolean, required: false, }, modalStatic: { type: Boolean, required: false, }, }, data() { return { Loading Loading @@ -185,6 +195,9 @@ export default { }, }, watch: { operation() { this.currentPage = 1; }, totalItems(newVal) { this.totalRows = newVal; }, Loading Loading
client/src/components/User/DiskUsage/Management/Cleanup/ReviewCleanupDialog.test.js +5 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,11 @@ const FAKE_OPERATION = () => { }; async function mountReviewCleanupDialogWith(operation, totalItems = EXPECTED_TOTAL_ITEMS) { const wrapper = mount(ReviewCleanupDialog, { propsData: { operation, totalItems, show: true } }, localVue); const wrapper = mount( ReviewCleanupDialog, { propsData: { operation, totalItems, show: true, modalStatic: true } }, localVue ); await flushPromises(); return wrapper; } Loading
client/src/components/User/DiskUsage/Management/Cleanup/ReviewCleanupDialog.vue +14 −1 Original line number Diff line number Diff line <template> <b-modal id="review-cleanup-dialog" v-model="showDialog" title-tag="h2" centered static @show="onShowModal"> <b-modal id="review-cleanup-dialog" v-model="showDialog" title-tag="h2" :static="modalStatic" centered @show="onShowModal"> <template v-slot:modal-title> {{ title }} <span class="text-primary h3">{{ totalItems }}<span v-if="rowLimitReached">+</span> items</span> Loading Loading @@ -98,6 +104,10 @@ export default { type: Boolean, required: false, }, modalStatic: { type: Boolean, required: false, }, }, data() { return { Loading Loading @@ -185,6 +195,9 @@ export default { }, }, watch: { operation() { this.currentPage = 1; }, totalItems(newVal) { this.totalRows = newVal; }, Loading