From c6f4ebced14d84708d2227364b281e21036cf8e8 Mon Sep 17 00:00:00 2001 From: bupd Date: Mon, 25 Nov 2024 15:10:11 +0530 Subject: [PATCH] update comments and nits Signed-off-by: bupd --- src/portal/src/app/base/base.module.ts | 1 - .../preference-settings.component.scss | 57 ------------------- .../preference-settings.component.ts | 2 - .../artifact-list-tab.component.html | 4 +- .../project/repository/artifact/artifact.ts | 10 ---- .../navigator/navigator.component.html | 1 + .../src/app/shared/entities/shared.const.ts | 2 +- .../src/app/shared/units/shared.utils.ts | 2 +- 8 files changed, 5 insertions(+), 74 deletions(-) diff --git a/src/portal/src/app/base/base.module.ts b/src/portal/src/app/base/base.module.ts index ecda2a7b1e7..6beb77fe643 100644 --- a/src/portal/src/app/base/base.module.ts +++ b/src/portal/src/app/base/base.module.ts @@ -20,7 +20,6 @@ import { MemberGuard } from '../shared/router-guard/member-guard-activate.servic import { ProjectRoutingResolver } from '../services/routing-resolvers/project-routing-resolver.service'; import { PasswordSettingComponent } from './password-setting/password-setting.component'; import { AccountSettingsModalComponent } from './account-settings/account-settings-modal.component'; -import { PreferenceSettingsComponent } from './preference-settings/preference-settings.component'; import { ForgotPasswordComponent } from './password-setting/forgot-password/forgot-password.component'; import { GlobalConfirmationDialogComponent } from './global-confirmation-dialog/global-confirmation-dialog.component'; diff --git a/src/portal/src/app/base/preference-settings/preference-settings.component.scss b/src/portal/src/app/base/preference-settings/preference-settings.component.scss index 4df3f0c05fa..437f23eb8d9 100644 --- a/src/portal/src/app/base/preference-settings/preference-settings.component.scss +++ b/src/portal/src/app/base/preference-settings/preference-settings.component.scss @@ -1,46 +1,7 @@ -.sign-in-override { - padding-left: 0 !important; - padding-right: 5px !important; -} - -.sign-up-override { - padding-left: 5px !important; -} - -.custom-divider { - display: inline-block; - border-right: 2px inset snow; - padding: 2px 0; - vertical-align: middle; - height: 24px; -} - .locale-selected { font-weight: bold; } -.nav-divider { - display: inline-block; - width: 1px; - height: 20px; - background-color: #fafafa; - position: relative; - opacity: 0.15; - content: ''; -} - -.nav-about-link { - padding-left: 1.6rem !important; - padding-right: 1rem !important; - min-width: 125px; - text-align: left !important; -} - -.harbor-logo { - width: 40px; - margin-right: 15px; -} - .nav-icon-width { width: auto !important; padding-left: 18px !important; @@ -69,21 +30,3 @@ align-items: start; gap: 20px; } - -.user-icon { - left: -2px; -} - -.headerLogo { - width: 36px; - height: 36px; - object-fit: fill; -} - -.dropdown-item { - outline: none; -} - -.user-down { - right: 1rem !important; -} diff --git a/src/portal/src/app/base/preference-settings/preference-settings.component.ts b/src/portal/src/app/base/preference-settings/preference-settings.component.ts index b5b37f2898d..d7045e16aaf 100644 --- a/src/portal/src/app/base/preference-settings/preference-settings.component.ts +++ b/src/portal/src/app/base/preference-settings/preference-settings.component.ts @@ -135,8 +135,6 @@ export class PreferenceSettingsComponent implements OnInit { switchRuntime(runtime: SupportedRuntime): void { this.selectedRuntime = runtime; localStorage.setItem(DEFAULT_RUNTIME_LOCALSTORAGE_KEY, runtime); - // have to reload,as HarborDatetimePipe is pure pipe - // window.location.reload(); } switchDatetimeRendering(datetime: DatetimeRendering): void { diff --git a/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html b/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html index 70d9a290bfa..12e18e7cef2 100644 --- a/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html +++ b/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html @@ -197,7 +197,7 @@ - {{ 'REPOSITORY.ARTIFACTS_COUNT' | translate }} @@ -260,7 +260,7 @@ - +
{{ 'ACCOUNT_SETTINGS.PREFERENCES' | translate }}