diff --git a/src/components/ChatView.vue b/src/components/ChatView.vue index 23274d1c832..7d338ba9944 100644 --- a/src/components/ChatView.vue +++ b/src/components/ChatView.vue @@ -23,6 +23,7 @@ @dragover.prevent="handleDragOver" @dragleave.prevent="handleDragLeave" @drop.prevent="handleDropFiles"> +
@@ -70,6 +71,7 @@ import ChevronDoubleDown from 'vue-material-design-icons/ChevronDoubleDown.vue' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import GuestWelcomeWindow from './GuestWelcomeWindow.vue' import MessagesList from './MessagesList/MessagesList.vue' import NewMessage from './NewMessage/NewMessage.vue' import TransitionWrapper from './TransitionWrapper.vue' @@ -87,6 +89,7 @@ export default { MessagesList, NewMessage, TransitionWrapper, + GuestWelcomeWindow, }, props: { @@ -109,6 +112,12 @@ export default { isGuest() { return this.$store.getters.getActorType() === 'guests' }, + + isGuestWithoutDisplayName() { + const userName = this.$store.getters.getDisplayName() + return !userName && this.isGuest + }, + dropHintText() { if (this.isGuest) { return t('spreed', 'You need to be logged in to upload files') diff --git a/src/components/GuestWelcomeWindow.vue b/src/components/GuestWelcomeWindow.vue new file mode 100644 index 00000000000..6d489b78694 --- /dev/null +++ b/src/components/GuestWelcomeWindow.vue @@ -0,0 +1,156 @@ + + + + + + + diff --git a/src/components/LobbyScreen.vue b/src/components/LobbyScreen.vue index d7c79ff5895..d07b956d954 100644 --- a/src/components/LobbyScreen.vue +++ b/src/components/LobbyScreen.vue @@ -20,6 +20,7 @@