From 213e06f02ea27662b9a562ff874dc1a8a414ccab Mon Sep 17 00:00:00 2001 From: Pavlo Tkach <3469726+ptkach@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:02:19 -0400 Subject: [PATCH] Add registry lock ui (#2500) --- console-webapp/src/app/app.module.ts | 2 + .../src/app/domains/domainList.component.html | 49 +++++++++- .../src/app/domains/domainList.component.scss | 6 ++ .../src/app/domains/domainList.component.ts | 32 ++++++- .../src/app/domains/domainList.service.ts | 10 +- .../app/domains/registryLock.component.html | 81 ++++++++++++++++ .../app/domains/registryLock.component.scss | 20 ++++ .../src/app/domains/registryLock.component.ts | 92 +++++++++++++++++++ .../src/app/domains/registryLock.service.ts | 59 ++++++++++++ .../src/app/home/home.component.html | 5 +- console-webapp/src/app/home/home.component.ts | 4 + .../app/resources/resources.component.html | 2 +- .../userLevelVisiblity.directive.ts | 15 ++- .../app/shared/services/backend.service.ts | 29 +++++- .../app/shared/services/userData.service.ts | 6 +- .../src/app/support/support.component.html | 16 ++-- 16 files changed, 398 insertions(+), 30 deletions(-) create mode 100644 console-webapp/src/app/domains/registryLock.component.html create mode 100644 console-webapp/src/app/domains/registryLock.component.scss create mode 100644 console-webapp/src/app/domains/registryLock.component.ts create mode 100644 console-webapp/src/app/domains/registryLock.service.ts diff --git a/console-webapp/src/app/app.module.ts b/console-webapp/src/app/app.module.ts index 40ddeeee7..8f41f6217 100644 --- a/console-webapp/src/app/app.module.ts +++ b/console-webapp/src/app/app.module.ts @@ -27,6 +27,7 @@ import { provideHttpClient } from '@angular/common/http'; import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field'; import { BillingInfoComponent } from './billingInfo/billingInfo.component'; import { DomainListComponent } from './domains/domainList.component'; +import { RegistryLockComponent } from './domains/registryLock.component'; import { HeaderComponent } from './header/header.component'; import { HomeComponent } from './home/home.component'; import { NavigationComponent } from './navigation/navigation.component'; @@ -71,6 +72,7 @@ import { RegistryLockVerifyComponent } from './lock/registryLockVerify.component NotificationsComponent, RegistrarComponent, RegistrarDetailsComponent, + RegistryLockComponent, RegistrarSelectorComponent, RegistryLockVerifyComponent, ResourcesComponent, diff --git a/console-webapp/src/app/domains/domainList.component.html b/console-webapp/src/app/domains/domainList.component.html index 0020a123d..8fd74db32 100644 --- a/console-webapp/src/app/domains/domainList.component.html +++ b/console-webapp/src/app/domains/domainList.component.html @@ -2,6 +2,17 @@
+ +
+ + @if(!registrarService.registrar()?.registryLockAllowed) { +Note: You may receive occasional service announcements via registrar-announcement@google.com. You will not be able to reply to @@ -29,13 +31,13 @@
For general support inquiries 24/7:
{{ userDataService.userData.supportPhoneNumber }}{{ userDataService.userData()?.supportPhoneNumber }} - @if (userDataService.userData.passcode) { + @if (userDataService.userData()?.passcode) {Your telephone passcode:
- {{ userDataService.userData.passcode }} + {{ userDataService.userData()?.passcode }}
Note: Please be ready with your account name and telephone passcode when