diff --git a/src/components/common/VnSummaryDialog.vue b/src/components/common/VnSummaryDialog.vue new file mode 100644 index 000000000..08fc8870d --- /dev/null +++ b/src/components/common/VnSummaryDialog.vue @@ -0,0 +1,23 @@ + + diff --git a/src/composables/useSummaryDialog.js b/src/composables/useSummaryDialog.js new file mode 100644 index 000000000..7d431129b --- /dev/null +++ b/src/composables/useSummaryDialog.js @@ -0,0 +1,15 @@ +import VnSummaryDialog from 'src/components/common/VnSummaryDialog.vue'; +import { useQuasar } from 'quasar'; + +export function useSummaryDialog() { + const quasar = useQuasar(); + + function viewSummary(id, summary) { + quasar.dialog({ + component: VnSummaryDialog, + componentProps: { id, summary }, + }); + } + + return { viewSummary }; +} diff --git a/src/pages/Claim/ClaimList.vue b/src/pages/Claim/ClaimList.vue index 1b5979f5a..492963399 100644 --- a/src/pages/Claim/ClaimList.vue +++ b/src/pages/Claim/ClaimList.vue @@ -1,7 +1,6 @@