chore: Remove loader

This commit is contained in:
iamsivin
2024-02-12 22:42:27 +05:30
parent 440e357c84
commit 139b0d8a4c
@@ -17,11 +17,7 @@
@next="onClickNext"
@prev="onClickPrev"
/>
<div v-if="isLoadingConversation" class="h-[calc(100%-56px)] w-full">
<span class="spinner mt-4 mb-4 h-full w-full" />
</div>
<conversation-box
v-else
class="h-[calc(100%-56px)]"
is-inbox-view
:inbox-id="inboxId"
@@ -81,7 +77,6 @@ export default {
data() {
return {
isOnExpandedLayout: false,
isLoadingConversation: false,
};
},
computed: {
@@ -163,17 +158,14 @@ export default {
},
async fetchConversationById() {
if (!this.notificationId || !this.conversationId) return;
this.isLoadingConversation = true;
this.$store.dispatch('clearSelectedState');
const existingChat = this.findConversation();
if (existingChat) {
this.setActiveChat(existingChat);
this.isLoadingConversation = false;
return;
}
await this.$store.dispatch('getConversation', this.conversationId);
this.setActiveChat();
this.isLoadingConversation = false;
},
setActiveChat(conversation = null) {
const selectedConversation = conversation || this.findConversation();