Skip to content

Commit

Permalink
set global selector for toast messages
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Apr 28, 2023
1 parent e6e194d commit b599cb4
Showing 1 changed file with 3 additions and 0 deletions.
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) })

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

0 comments on commit b599cb4

Please sign in to comment.