diff options
| author | Zephyrrus <[email protected]> | 2020-07-05 04:18:08 +0300 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-07-05 04:18:08 +0300 |
| commit | 766e74cc51138b32482f65f0f2647eb9d943103e (patch) | |
| tree | d675cdaa4dc4a89356009131707b11b511069494 /src/site/plugins/notifier.js | |
| parent | feat: refactor single album page to use vuex (diff) | |
| download | host.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.js | 7 |
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 }); + } + }); +}; |