 ]
    }),
    computed: {
      pushNotificationsSupport: ({ $pushNotificationsSupport }) => $pushNotificationsSupport
    },
    methods: {
      async onPushSettingsChange (e) {
        const { instanceName, options } = this.get()
        const { form } = this.refs
        const alerts = {}

        for (const { key } of options) {
          alerts[key] = form.elements[key].checked
        }

        try {
          await updateAlerts(instanceName, alerts)
        } catch (err) {
          e.target.check