Skip to content

Commit ebeda43

Browse files
committed
Import missing components to CleanupResultDialog: BModal, BAlert, and BSpinner
1 parent 30b6d5c commit ebeda43

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

client/src/components/User/DiskUsage/Management/Cleanup/CleanupResultDialog.vue

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup lang="ts">
2+
import { BAlert, BModal, BSpinner } from "bootstrap-vue";
23
import { computed, ref } from "vue";
34
45
import type { TableField } from "@/components/Common/GTable.types";
@@ -50,16 +51,17 @@ defineExpose({
5051
</script>
5152

5253
<template>
53-
<b-modal id="cleanup-result-modal" v-model="showModal" :title="title" title-tag="h2" hide-footer static>
54+
<BModal id="cleanup-result-modal" v-model="showModal" :title="title" title-tag="h2" hide-footer static>
5455
<div class="text-center">
5556
<Alert
5657
variant="info"
5758
message="After the operation, the storage space that will be freed up will only be for the unique items. This means that some items may not free up any storage space because they are duplicates of other items." />
58-
<b-spinner v-if="isLoading" class="mx-auto" data-test-id="loading-spinner" />
59+
60+
<BSpinner v-if="isLoading" class="mx-auto" data-test-id="loading-spinner" />
5961
<div v-else-if="result">
60-
<b-alert v-if="result.hasFailed" show variant="danger" data-test-id="error-alert">
62+
<BAlert v-if="result.hasFailed" show variant="danger" data-test-id="error-alert">
6163
{{ result.errorMessage }}
62-
</b-alert>
64+
</BAlert>
6365
<h3 v-else-if="result.success" data-test-id="success-info">
6466
You've cleared <b>{{ result.niceTotalFreeBytes }}</b>
6567
</h3>
@@ -68,18 +70,19 @@ defineExpose({
6870
You've successfully cleared <b>{{ result.totalCleaned }}</b> items for a total of
6971
<b>{{ result.niceTotalFreeBytes }}</b> but...
7072
</h3>
71-
<b-alert v-if="result.hasSomeErrors" show variant="warning">
73+
<BAlert v-if="result.hasSomeErrors" show variant="warning">
7274
<h3 class="mb-0">
7375
<b>{{ result.errors.length }}</b> items couldn't be cleared
7476
</h3>
75-
</b-alert>
77+
</BAlert>
7678
</div>
79+
7780
<GTable
7881
v-if="result.hasSomeErrors"
7982
:fields="errorFields"
8083
:items="result.errors"
8184
data-test-id="errors-table" />
8285
</div>
8386
</div>
84-
</b-modal>
87+
</BModal>
8588
</template>

0 commit comments

Comments
 (0)