diff --git a/src/collections.js b/src/collections.js
index 28c90820715..b9b51606430 100644
--- a/src/collections.js
+++ b/src/collections.js
@@ -14,12 +14,7 @@ __webpack_public_path__ = OC.linkTo('spreed', 'js/')
window.OCP.Collaboration.registerType('room', {
action: async () => {
- const conversation = await requestRoomSelection('spreed-room-select', {
- // Even if it is used from Talk the Collections menu is
- // independently loaded, so the properties that depend
- // on the store need to be explicitly injected.
- container: window.store ? window.store.getters.getMainContainerSelector() : undefined,
- })
+ const conversation = await requestRoomSelection('spreed-room-select', {})
if (!conversation) {
throw new Error('User cancelled resource selection')
}
diff --git a/src/components/AdminSettings/BotsSettings.vue b/src/components/AdminSettings/BotsSettings.vue
index bad1840b6f8..15b48368210 100644
--- a/src/components/AdminSettings/BotsSettings.vue
+++ b/src/components/AdminSettings/BotsSettings.vue
@@ -48,7 +48,7 @@
diff --git a/src/components/AvatarWrapper/AvatarWrapper.spec.js b/src/components/AvatarWrapper/AvatarWrapper.spec.js
index cf4f6c5702b..a446b23a9b0 100644
--- a/src/components/AvatarWrapper/AvatarWrapper.spec.js
+++ b/src/components/AvatarWrapper/AvatarWrapper.spec.js
@@ -21,11 +21,9 @@ describe('AvatarWrapper.vue', () => {
const USER_ID = 'user-id'
const USER_NAME = 'John Doe'
const PRELOADED_USER_STATUS = { status: 'online', message: null, icon: null }
- const MENU_CONTAINER = '#menu-container'
beforeEach(() => {
testStoreConfig = cloneDeep(storeConfig)
- testStoreConfig.modules.uiModeStore.getters.getMainContainerSelector = jest.fn().mockReturnValue(() => MENU_CONTAINER)
store = new Vuex.Store(testStoreConfig)
})
@@ -86,7 +84,6 @@ describe('AvatarWrapper.vue', () => {
expect(avatar.props('user')).toBe(USER_ID)
expect(avatar.props('displayName')).toBe(USER_NAME)
- expect(avatar.props('menuContainer')).toBe(MENU_CONTAINER)
expect(avatar.props('showUserStatus')).toBe(true)
expect(avatar.props('showUserStatusCompact')).toBe(false)
expect(avatar.props('preloadedUserStatus')).toBe(PRELOADED_USER_STATUS)
diff --git a/src/components/AvatarWrapper/AvatarWrapper.vue b/src/components/AvatarWrapper/AvatarWrapper.vue
index 80909f1d10b..f098a1fcb36 100644
--- a/src/components/AvatarWrapper/AvatarWrapper.vue
+++ b/src/components/AvatarWrapper/AvatarWrapper.vue
@@ -23,7 +23,7 @@
:key="id + (isDarkTheme ? '-dark' : '-light')"
:user="id"
:display-name="name"
- :menu-container="menuContainerWithFallback"
+ :menu-container="menuContainer"
:disable-tooltip="disableTooltip"
:disable-menu="disableMenu"
:show-user-status="showUserStatus"
@@ -201,9 +201,6 @@ export default {
const customName = this.name?.trim() && this.name !== t('spreed', 'Guest') ? this.name : '?'
return customName.charAt(0)
},
- menuContainerWithFallback() {
- return this.menuContainer ?? this.$store.getters.getMainContainerSelector()
- },
avatarUrl() {
return getUserProxyAvatarOcsUrl(this.token, this.id, this.isDarkTheme, this.size > AVATAR.SIZE.MEDIUM ? 512 : 64)
},
diff --git a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue
index 0329a7f9240..085c9164dcc 100644
--- a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue
+++ b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue
@@ -4,8 +4,7 @@
-->
-
{
return (participant.participantType === PARTICIPANT.TYPE.USER
diff --git a/src/components/BreakoutRoomsEditor/SendMessageDialog.vue b/src/components/BreakoutRoomsEditor/SendMessageDialog.vue
index 3256a0ead3b..bca61cbeee9 100644
--- a/src/components/BreakoutRoomsEditor/SendMessageDialog.vue
+++ b/src/components/BreakoutRoomsEditor/SendMessageDialog.vue
@@ -6,14 +6,11 @@
-
-
@@ -113,7 +110,6 @@ export default {
return {
isChatScrolledToBottom: true,
isDraggingOver: false,
- containerId: undefined,
}
},
@@ -163,26 +159,11 @@ export default {
return this.$store.getters.conversation(this.token)
},
- container() {
- return this.$store.getters.getMainContainerSelector()
- },
-
isLoadingChat() {
return !this.$store.getters.isMessagesListPopulated(this.token)
},
},
- watch: {
- container(value) {
- this.containerId = value
- },
- },
-
- mounted() {
- // Postpone render of NewMessage until application is mounted
- this.containerId = this.container
- },
-
methods: {
t,
diff --git a/src/components/ConversationIcon.vue b/src/components/ConversationIcon.vue
index bd61da75aa1..aaf11831c17 100644
--- a/src/components/ConversationIcon.vue
+++ b/src/components/ConversationIcon.vue
@@ -39,7 +39,6 @@
:preloaded-user-status="preloadedUserStatus"
:show-user-status="!hideUserStatus"
:show-user-status-compact="!showUserOnlineStatus"
- :menu-container="menuContainer"
class="conversation-icon__avatar" />
@@ -159,12 +158,6 @@ export default {
return getPreloadedUserStatus(this.item)
},
- menuContainer() {
- // The store may not be defined in the RoomSelector if used from
- // the Collaboration menu outside Talk.
- return this.$store?.getters.getMainContainerSelector()
- },
-
iconClass() {
if (this.item.isDummyConversation) {
// Prevent a 404 when trying to load an avatar before the conversation data is actually loaded
diff --git a/src/components/ConversationSettings/ConversationSettingsDialog.vue b/src/components/ConversationSettings/ConversationSettingsDialog.vue
index f978795a02f..07e1498d75a 100644
--- a/src/components/ConversationSettings/ConversationSettingsDialog.vue
+++ b/src/components/ConversationSettings/ConversationSettingsDialog.vue
@@ -8,8 +8,7 @@
:aria-label="t('spreed', 'Conversation settings')"
:name="t('spreed', 'Conversation settings')"
:open.sync="showSettings"
- :show-navigation="true"
- :container="container">
+ show-navigation>
-
@@ -100,10 +99,6 @@ export default {
},
computed: {
- container() {
- return this.$store.getters.getMainContainerSelector()
- },
-
conversation() {
return this.$store.getters.conversation(this.token)
},
diff --git a/src/components/LeftSidebar/CallPhoneDialog/CallPhoneDialog.vue b/src/components/LeftSidebar/CallPhoneDialog/CallPhoneDialog.vue
index ac9adf11d39..46a353a4efa 100644
--- a/src/components/LeftSidebar/CallPhoneDialog/CallPhoneDialog.vue
+++ b/src/components/LeftSidebar/CallPhoneDialog/CallPhoneDialog.vue
@@ -7,7 +7,6 @@
@@ -81,12 +80,6 @@ export default {
}
},
- computed: {
- container() {
- return this.$store.getters.getMainContainerSelector()
- },
- },
-
expose: ['showModal'],
watch: {
diff --git a/src/components/LeftSidebar/ConversationsList/Conversation.vue b/src/components/LeftSidebar/ConversationsList/Conversation.vue
index 0e99b234c96..b87ab7fac08 100644
--- a/src/components/LeftSidebar/ConversationsList/Conversation.vue
+++ b/src/components/LeftSidebar/ConversationsList/Conversation.vue
@@ -99,8 +99,7 @@
+ :message="dialogMessage">
{{ t('spreed', 'No') }}
@@ -209,10 +208,6 @@ export default {
},
computed: {
- container() {
- return this.$store.getters.getMainContainerSelector()
- },
-
canFavorite() {
return this.item.participantType !== PARTICIPANT.TYPE.USER_SELF_JOINED
},
diff --git a/src/components/LeftSidebar/InvitationHandler.vue b/src/components/LeftSidebar/InvitationHandler.vue
index 8cdbb68dd87..38d90566a24 100644
--- a/src/components/LeftSidebar/InvitationHandler.vue
+++ b/src/components/LeftSidebar/InvitationHandler.vue
@@ -6,7 +6,6 @@
@@ -115,10 +114,6 @@ export default {
},
computed: {
- container() {
- return this.$store.getters.getMainContainerSelector()
- },
-
invitations() {
const invitations = {}
for (const id in this.federationStore.pendingShares) {
diff --git a/src/components/LeftSidebar/OpenConversationsList/OpenConversationsList.vue b/src/components/LeftSidebar/OpenConversationsList/OpenConversationsList.vue
index f1a2eabc7a9..1aa7185594f 100644
--- a/src/components/LeftSidebar/OpenConversationsList/OpenConversationsList.vue
+++ b/src/components/LeftSidebar/OpenConversationsList/OpenConversationsList.vue
@@ -5,7 +5,6 @@