aboutsummaryrefslogtreecommitdiff
path: root/src/site/plugins/notifier.js
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2020-07-05 04:18:08 +0300
committerZephyrrus <[email protected]>2020-07-05 04:18:08 +0300
commit766e74cc51138b32482f65f0f2647eb9d943103e (patch)
treed675cdaa4dc4a89356009131707b11b511069494 /src/site/plugins/notifier.js
parentfeat: refactor single album page to use vuex (diff)
downloadhost.fuwn.me-766e74cc51138b32482f65f0f2647eb9d943103e.tar.xz
host.fuwn.me-766e74cc51138b32482f65f0f2647eb9d943103e.zip
feat: add video preview on hover to dashboard and apply new linter rules to some of the files
Diffstat (limited to 'src/site/plugins/notifier.js')
-rw-r--r--src/site/plugins/notifier.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/site/plugins/notifier.js b/src/site/plugins/notifier.js
new file mode 100644
index 0000000..bcf7878
--- /dev/null
+++ b/src/site/plugins/notifier.js
@@ -0,0 +1,7 @@
+export default ({ store }, inject) => {
+ inject('notifier', {
+ showMessage({ content = '', type = '' }) {
+ store.commit('alert/set', { content, color });
+ }
+ });
+};