From 7dca45f99db58d9bb3423a3765aaee68c69bc9f2 Mon Sep 17 00:00:00 2001 From: Ms Kimsible <1877318+kimsible@users.noreply.github.com> Date: Thu, 26 Aug 2021 08:22:33 +0200 Subject: [PATCH] Inform user to fill account profile and channels (#4352) * Add account-setup modal when login * Add channels-setup alert into my-channels, my-playlists and upload page Co-authored-by: Ms Kimsible --- CREDITS.md | 2 +- .../my-video-channels.component.html | 2 + .../my-video-playlists.component.html | 2 + .../+video-edit/video-add.component.html | 2 + client/src/app/app.component.html | 5 +- client/src/app/app.component.ts | 2 + client/src/app/app.module.ts | 2 + .../modal/account-setup-modal.component.html | 33 +++++++++ .../modal/account-setup-modal.component.scss | 31 ++++++++ .../modal/account-setup-modal.component.ts | 70 +++++++++++++++++++ .../shared-icons/global-icon.component.ts | 1 + .../channels-setup-message.component.html | 8 +++ .../channels-setup-message.component.scss | 32 +++++++++ .../misc/channels-setup-message.component.ts | 32 +++++++++ .../src/app/shared/shared-main/misc/index.ts | 1 + .../shared/shared-main/shared-main.module.ts | 10 ++- client/src/assets/images/misc/tip.svg | 1 + 17 files changed, 232 insertions(+), 4 deletions(-) create mode 100644 client/src/app/modal/account-setup-modal.component.html create mode 100644 client/src/app/modal/account-setup-modal.component.scss create mode 100644 client/src/app/modal/account-setup-modal.component.ts create mode 100644 client/src/app/shared/shared-main/misc/channels-setup-message.component.html create mode 100644 client/src/app/shared/shared-main/misc/channels-setup-message.component.scss create mode 100644 client/src/app/shared/shared-main/misc/channels-setup-message.component.ts create mode 100644 client/src/assets/images/misc/tip.svg diff --git a/CREDITS.md b/CREDITS.md index 6cc369482..5de12d2cb 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -526,7 +526,7 @@ # Icons * [Feather Icons](https://feathericons.com) (MIT) - * `playlist add`, `history`, `subscriptions`, `miscellaneous-services.svg` by Material UI (Apache 2.0) + * `playlist add`, `history`, `subscriptions`, `miscellaneous-services.svg`, `tip` by Material UI (Apache 2.0) * `support` by Chocobozzz (CC-BY) * `language` by Aaron Jin (CC-BY) * `video-language` by Rigel Kent (CC-BY) diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html index 9f139b4f2..4c5b46d5b 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html @@ -4,6 +4,8 @@ {{ totalItems }} + +
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html index 7f5b8bbf4..25b742bff 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html @@ -3,6 +3,8 @@ My playlists {{ pagination.totalItems }} + +
diff --git a/client/src/app/+videos/+video-edit/video-add.component.html b/client/src/app/+videos/+video-edit/video-add.component.html index b056c6e7a..62b42ae10 100644 --- a/client/src/app/+videos/+video-edit/video-add.component.html +++ b/client/src/app/+videos/+video-edit/video-add.component.html @@ -45,6 +45,8 @@ Upload {{ videoName }}
+ +