Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import debounce from 'debounce'
import PreventUnload from 'vue-prevent-unload'

import { getCurrentUser } from '@nextcloud/auth'
import { setGlobalToastOptions } from '@nextcloud/dialogs'
import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus'
import { generateUrl } from '@nextcloud/router'

Expand Down Expand Up @@ -255,6 +256,8 @@ export default {

this.onResize()

setGlobalToastOptions({ selector: this.$store.getters.getMainContainerSelector().slice(1) })

Comment on lines +259 to +260
Copy link
Contributor

@ShGKme ShGKme Apr 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested yet, but it seems, it should be watch. Otherwise, it sets it once and doesn't update global selector with the getMainContainerSelector update.

window.addEventListener('unload', () => {
console.info('Navigating away, leaving conversation')
if (this.token) {
Expand Down