diff --git a/package.json b/package.json
index a88259f..a9f30bc 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
"quasar": "^2.3.3"
},
"devDependencies": {
- "@flaschengeist/types": "^1.0.0-alpha.5",
+ "@flaschengeist/types": "^1.0.0-alpha.6",
"@quasar/app": "^3.2.3",
"@quasar/extras": "^1.12.1",
"@types/node": "^14.17.34",
diff --git a/quasar.conf.js b/quasar.conf.js
index 2602cf5..76f7aac 100644
--- a/quasar.conf.js
+++ b/quasar.conf.js
@@ -132,6 +132,7 @@ module.exports = configure(function (/* ctx */) {
plugins: [
'LocalStorage',
'SessionStorage',
+ 'Dialog',
'Loading',
'Notify',
'LoadingBar'
diff --git a/src/components/Notification.vue b/src/components/Notification.vue
index f7ac317..949d531 100644
--- a/src/components/Notification.vue
+++ b/src/components/Notification.vue
@@ -1,34 +1,53 @@
- {{ dateString }}
- {{ modelValue.text }}
-
+
+ {{ dateString }}
+
+
+ {{ modelValue.text }}
+
+
+
+
+
+
@@ -63,13 +82,19 @@ export default defineComponent({
else emit('remove', props.modelValue.id);
}
- function remove() {
+ function reject() {
if (typeof props.modelValue.reject === 'function')
void props.modelValue.reject().finally(() => emit('remove', props.modelValue.id));
else emit('remove', props.modelValue.id);
}
- return { accept, click, dateString, remove };
+ function dismiss() {
+ if (typeof props.modelValue.dismiss === 'function')
+ void props.modelValue.dismiss().finally(() => emit('remove', props.modelValue.id));
+ else emit('remove', props.modelValue.id);
+ }
+
+ return { accept, click, dateString, dismiss, reject };
},
});
diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue
index 889a6a5..646e42e 100644
--- a/src/layouts/MainLayout.vue
+++ b/src/layouts/MainLayout.vue
@@ -18,7 +18,7 @@
{{ notifications.length }}
-
+