Skip to content

Commit 3f449e2

Browse files
Fix cleanup plans modal not closing
1 parent be544e7 commit 3f449e2

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

web/server/vue-cli/src/components/Report/CleanupPlan/ManageCleanupPlanDialog.vue

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,18 @@
1212
<slot />
1313
</template>
1414

15-
<v-card>
16-
<v-card-title
17-
class="headline primary white--text"
18-
primary-title
19-
>
20-
<v-container>
21-
<v-row>
22-
<h1>Manage Cleanup Plans</h1>
23-
<span
24-
class="subtitle-1"
25-
>
26-
Use cleanup plans to track progress of reports in your product.
27-
</span>
28-
</v-row>
29-
</v-container>
30-
31-
<v-spacer />
32-
15+
<v-card
16+
title="Manage Cleanup Plans"
17+
subtitle="Use cleanup plans to track progress of reports in your product."
18+
>
19+
<template v-slot:append>
3320
<v-btn
3421
class="close-btn"
3522
icon="mdi-close"
23+
size="small"
3624
@click="dialog = false"
3725
/>
38-
</v-card-title>
26+
</template>
3927

4028
<v-card-text class="pa-0">
4129
<v-container>
@@ -65,13 +53,17 @@ import { computed } from "vue";
6553
import ListCleanupPlans from "./ListCleanupPlans";
6654
6755
const props = defineProps({
68-
value: { type: Boolean, default: false },
56+
modelValue: { type: Boolean, default: false }
6957
});
7058
71-
const emit = defineEmits([ "update:value" ]);
59+
const emit = defineEmits([ "update:modelValue" ]);
7260
7361
const dialog = computed({
74-
get: () => props.value,
75-
set: val => emit("update:value", val)
62+
get() {
63+
return props.modelValue;
64+
},
65+
set(value) {
66+
emit("update:modelValue", value);
67+
}
7668
});
7769
</script>

0 commit comments

Comments
 (0)