From bebd8288e54fe9b223a8c70a689b6baefa177b0d Mon Sep 17 00:00:00 2001 From: Ashurov Georgy Date: Mon, 16 Dec 2024 15:09:24 +0300 Subject: [PATCH] Update room modal --- public/components/CoWatchBlock/CoWatchBlock.ts | 5 ++++- public/components/CreateRoomModal/CreateRoomModal.hbs | 6 ++---- public/components/CreateRoomModal/CreateRoomModal.ts | 11 +++++++++-- public/pages/RoomPage/RoomPage.ts | 6 +++++- public/store/RoomPageStore.ts | 6 +++++- 5 files changed, 25 insertions(+), 9 deletions(-) diff --git a/public/components/CoWatchBlock/CoWatchBlock.ts b/public/components/CoWatchBlock/CoWatchBlock.ts index cf8891d..fd2c932 100644 --- a/public/components/CoWatchBlock/CoWatchBlock.ts +++ b/public/components/CoWatchBlock/CoWatchBlock.ts @@ -25,7 +25,10 @@ export class CoWatchBlock { if (createRoomButton) { createRoomButton.addEventListener('click', () => { - const modal = new CreateRoomModal(); + const modal = new CreateRoomModal( + 'Создание комнаты', + 'Воспользуйтесь поиском, чтобы найти нужный фильм и создать комнату для совместного просмотра', + ); modal.render(); }); } diff --git a/public/components/CreateRoomModal/CreateRoomModal.hbs b/public/components/CreateRoomModal/CreateRoomModal.hbs index c07779b..aafea0a 100644 --- a/public/components/CreateRoomModal/CreateRoomModal.hbs +++ b/public/components/CreateRoomModal/CreateRoomModal.hbs @@ -6,12 +6,10 @@ src='/assets/icons/closeNoShadowIcon.svg' alt='' /> -

Создание комнаты

+

{{title}}