logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

global_notice_list.js (460B)


  1. import { library } from '@fortawesome/fontawesome-svg-core'
  2. import {
  3. faTimes
  4. } from '@fortawesome/free-solid-svg-icons'
  5. import { useInterfaceStore } from 'src/stores/interface'
  6. library.add(
  7. faTimes
  8. )
  9. const GlobalNoticeList = {
  10. computed: {
  11. notices () {
  12. return useInterfaceStore().globalNotices
  13. }
  14. },
  15. methods: {
  16. closeNotice (notice) {
  17. useInterfaceStore().removeGlobalNotice(notice)
  18. }
  19. }
  20. }
  21. export default GlobalNoticeList