From b599cb44b5cec3ee32e37ec1d37b68cb56a82d1a Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Fri, 28 Apr 2023 13:14:43 +0200 Subject: [PATCH] set global selector for toast messages Signed-off-by: Maksim Sukharev --- src/App.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.vue b/src/App.vue index 68dbbeeea19..5c15fcb6dff 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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' @@ -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) {