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 (415B)


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