basic notify_push usage with session handling (rebased)

Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2022-08-04 14:42:27 +02:00
parent 0c69404ac9
commit fcfbcc63b4
21 changed files with 805 additions and 1 deletions

View File

@@ -40,6 +40,8 @@
</p>
</div>
<div class="board-actions">
<SessionList v-if="isNotifyPushEnabled && board && board.activeSessions"
:sessions="board.activeSessions" />
<div v-if="searchQuery || true" class="deck-search">
<input type="search"
class="icon-search"
@@ -224,6 +226,8 @@ import FilterIcon from 'vue-material-design-icons/Filter.vue'
import FilterOffIcon from 'vue-material-design-icons/FilterOff.vue'
import ArrowCollapseVerticalIcon from 'vue-material-design-icons/ArrowCollapseVertical.vue'
import ArrowExpandVerticalIcon from 'vue-material-design-icons/ArrowExpandVertical.vue'
import SessionList from './SessionList'
import { isNotifyPushEnabled } from '../listeners'
export default {
name: 'Controls',
@@ -239,6 +243,7 @@ export default {
FilterOffIcon,
ArrowCollapseVerticalIcon,
ArrowExpandVerticalIcon,
SessionList,
},
mixins: [labelStyle],
props: {
@@ -286,6 +291,9 @@ export default {
labelsSorted() {
return [...this.board.labels].sort((a, b) => (a.title < b.title) ? -1 : 1)
},
isNotifyPushEnabled() {
return isNotifyPushEnabled()
},
},
watch: {
board(current, previous) {