aboutsummaryrefslogtreecommitdiff
path: root/src/components/global_notice_list/global_notice_list.js
blob: e93fba752ebfff197e350c942d9e643a74d25d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { library } from '@fortawesome/fontawesome-svg-core'
import {
  faTimes
} from '@fortawesome/free-solid-svg-icons'

library.add(
  faTimes
)

const GlobalNoticeList = {
  computed: {
    notices () {
      return this.$store.state.interface.globalNotices
    }
  },
  methods: {
    closeNotice (notice) {
      this.$store.dispatch('removeGlobalNotice', notice)
    }
  }
}

export default GlobalNoticeList