diff --git a/src/app/modules/admin/apps/chat/chat.module.ts b/src/app/modules/admin/apps/chat/chat.module.ts index ad612551..615841fa 100644 --- a/src/app/modules/admin/apps/chat/chat.module.ts +++ b/src/app/modules/admin/apps/chat/chat.module.ts @@ -12,6 +12,7 @@ import { chatRoutes } from 'app/modules/admin/apps/chat/chat.routing'; import { ChatComponent } from 'app/modules/admin/apps/chat/chat.component'; import { ChatsComponent } from 'app/modules/admin/apps/chat/chats/chats.component'; import { ContactInfoComponent } from 'app/modules/admin/apps/chat/contact-info/contact-info.component'; +import { EmptyConversationComponent } from 'app/modules/admin/apps/chat/empty-conversation/empty-conversation.component'; import { ConversationComponent } from 'app/modules/admin/apps/chat/conversation/conversation.component'; import { NewChatComponent } from 'app/modules/admin/apps/chat/new-chat/new-chat.component'; import { ProfileComponent } from 'app/modules/admin/apps/chat/profile/profile.component'; @@ -22,6 +23,7 @@ import { ProfileComponent } from 'app/modules/admin/apps/chat/profile/profile.co ChatsComponent, ContactInfoComponent, ConversationComponent, + EmptyConversationComponent, NewChatComponent, ProfileComponent ], diff --git a/src/app/modules/admin/apps/chat/chat.routing.ts b/src/app/modules/admin/apps/chat/chat.routing.ts index caa84979..e4e6978e 100644 --- a/src/app/modules/admin/apps/chat/chat.routing.ts +++ b/src/app/modules/admin/apps/chat/chat.routing.ts @@ -3,6 +3,7 @@ import { ChatChatResolver, ChatChatsResolver, ChatContactsResolver, ChatProfileR import { ChatComponent } from 'app/modules/admin/apps/chat/chat.component'; import { ChatsComponent } from 'app/modules/admin/apps/chat/chats/chats.component'; import { ConversationComponent } from 'app/modules/admin/apps/chat/conversation/conversation.component'; +import { EmptyConversationComponent } from 'app/modules/admin/apps/chat/empty-conversation/empty-conversation.component'; export const chatRoutes: Route[] = [ { @@ -20,15 +21,14 @@ export const chatRoutes: Route[] = [ children : [ { path : '', + component: EmptyConversationComponent + }, + { + path : ':id', component: ConversationComponent, - children : [ - { - path : ':id', - resolve: { - conversation: ChatChatResolver - } - } - ] + resolve : { + conversation: ChatChatResolver + } } ] } diff --git a/src/app/modules/admin/apps/chat/empty-conversation/empty-conversation.component.html b/src/app/modules/admin/apps/chat/empty-conversation/empty-conversation.component.html new file mode 100644 index 00000000..8fc1a616 --- /dev/null +++ b/src/app/modules/admin/apps/chat/empty-conversation/empty-conversation.component.html @@ -0,0 +1,11 @@ +