Profile settings: add global Notification toggle
This commit is contained in:
parent
1ddedac0ef
commit
3ad766fe12
8 changed files with 128 additions and 79 deletions
|
|
@ -4,18 +4,16 @@
|
|||
no-gutters
|
||||
align-content="center"
|
||||
v-on="$listeners"
|
||||
v-show="icon === 'notifications_active' ? this.windowNotificationPermission() !== 'granted' : true"
|
||||
>
|
||||
<v-col cols="auto" class="me-2">
|
||||
<v-col cols="auto" class="me-2 align-self-center">
|
||||
<v-icon :size="iconSize">{{ icon }}</v-icon>
|
||||
</v-col>
|
||||
<v-col>{{ text }}</v-col>
|
||||
<v-col class="align-self-center">{{ text }}</v-col>
|
||||
<v-col cols="auto" v-if="$slots.default"><slot/></v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { windowNotificationPermission } from "../plugins/notificationAndServiceWorker.js"
|
||||
|
||||
export default {
|
||||
name: "ActionRow",
|
||||
props: {
|
||||
|
|
@ -37,9 +35,6 @@ export default {
|
|||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
windowNotificationPermission
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue