diff --git a/harbor-app/src/app/account/account-settings/account-settings-modal.component.html b/harbor-app/src/app/account/account-settings/account-settings-modal.component.html
index 6c54c0285..5791eebc1 100644
--- a/harbor-app/src/app/account/account-settings/account-settings-modal.component.html
+++ b/harbor-app/src/app/account/account-settings/account-settings-modal.component.html
@@ -21,7 +21,7 @@
diff --git a/harbor-app/src/app/app.module.ts b/harbor-app/src/app/app.module.ts
index 71f96e112..ff31693bb 100644
--- a/harbor-app/src/app/app.module.ts
+++ b/harbor-app/src/app/app.module.ts
@@ -6,9 +6,9 @@ import { ClarityModule } from 'clarity-angular';
import { AppComponent } from './app.component';
import { BaseModule } from './base/base.module';
-
import { HarborRoutingModule } from './harbor-routing.module';
import { SharedModule } from './shared/shared.module';
+import { AccountModule } from './account/account.module';
@NgModule({
declarations: [
@@ -17,6 +17,7 @@ import { SharedModule } from './shared/shared.module';
imports: [
SharedModule,
BaseModule,
+ AccountModule,
HarborRoutingModule
],
providers: [],
diff --git a/harbor-app/src/app/base/base.module.ts b/harbor-app/src/app/base/base.module.ts
index 65d359ebe..4a34f4558 100644
--- a/harbor-app/src/app/base/base.module.ts
+++ b/harbor-app/src/app/base/base.module.ts
@@ -4,6 +4,7 @@ import { SharedModule } from '../shared/shared.module';
import { DashboardModule } from '../dashboard/dashboard.module';
import { ProjectModule } from '../project/project.module';
import { UserModule } from '../user/user.module';
+import { AccountModule } from '../account/account.module';
import { NavigatorComponent } from './navigator/navigator.component';
import { GlobalSearchComponent } from './global-search/global-search.component';
@@ -19,7 +20,8 @@ import { BaseRoutingModule } from './base-routing.module';
DashboardModule,
ProjectModule,
UserModule,
- BaseRoutingModule
+ BaseRoutingModule,
+ AccountModule
],
declarations: [
NavigatorComponent,
diff --git a/harbor-app/src/app/base/harbor-shell/harbor-shell.component.html b/harbor-app/src/app/base/harbor-shell/harbor-shell.component.html
index 3b095af38..2b6c865a2 100644
--- a/harbor-app/src/app/base/harbor-shell/harbor-shell.component.html
+++ b/harbor-app/src/app/base/harbor-shell/harbor-shell.component.html
@@ -27,4 +27,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/harbor-app/src/app/base/harbor-shell/harbor-shell.component.ts b/harbor-app/src/app/base/harbor-shell/harbor-shell.component.ts
index 8ccf6c6b2..926c7ac73 100644
--- a/harbor-app/src/app/base/harbor-shell/harbor-shell.component.ts
+++ b/harbor-app/src/app/base/harbor-shell/harbor-shell.component.ts
@@ -77,11 +77,4 @@ export class HarborShellComponent implements OnInit {
this.isSearchResultsOpened = false;
}
}
-
- //Watch password whether changed
- watchPwdChange(event: any): void {
- if (event) {
- this.navigator.logOut(true);
- }
- }
}
\ No newline at end of file
diff --git a/harbor-app/src/app/base/navigator/navigator.component.html b/harbor-app/src/app/base/navigator/navigator.component.html
index ecd7688e8..e8edff0b6 100644
--- a/harbor-app/src/app/base/navigator/navigator.component.html
+++ b/harbor-app/src/app/base/navigator/navigator.component.html
@@ -19,10 +19,11 @@
@@ -37,16 +38,5 @@
中文繁體
-
-
-
-
\ No newline at end of file
diff --git a/harbor-app/src/app/base/navigator/navigator.component.ts b/harbor-app/src/app/base/navigator/navigator.component.ts
index 72661a469..e8f48330a 100644
--- a/harbor-app/src/app/base/navigator/navigator.component.ts
+++ b/harbor-app/src/app/base/navigator/navigator.component.ts
@@ -54,17 +54,12 @@ export class NavigatorComponent implements OnInit {
}
//Log out system
- logOut(reSignIn: boolean): void {
+ logOut(): void {
this.session.signOff()
.then(() => {
this.sessionUser = null;
- if (reSignIn) {
- //Naviagte to the sign in route
- this.router.navigate(["/sign-in"]);
- } else {
- //Naviagte to the default route
- this.router.navigate(["/harbor"]);
- }
+ //Naviagte to the sign in route
+ this.router.navigate(["/sign-in"]);
})
.catch()//TODO:
}
diff --git a/harbor-app/src/app/shared/max-length-ext.directive.ts b/harbor-app/src/app/shared/max-length-ext.directive.ts
index 724c4d5af..d261c977a 100644
--- a/harbor-app/src/app/shared/max-length-ext.directive.ts
+++ b/harbor-app/src/app/shared/max-length-ext.directive.ts
@@ -16,7 +16,7 @@ export function maxLengthExtValidator(length: number): ValidatorFn {
for (var i = 0; i < len; i++) {
if (regExp.test(value[i])) {
- count += 2;
+ count += 3;
} else {
count++;
}
diff --git a/harbor-app/src/app/shared/shared.module.ts b/harbor-app/src/app/shared/shared.module.ts
index dc5e2b14f..d82803aa3 100644
--- a/harbor-app/src/app/shared/shared.module.ts
+++ b/harbor-app/src/app/shared/shared.module.ts
@@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { CoreModule } from '../core/core.module';
-import { AccountModule } from '../account/account.module';
+//import { AccountModule } from '../account/account.module';
import { SessionService } from '../shared/session.service';
import { MessageComponent } from '../global-message/message.component';
@@ -10,7 +10,7 @@ import { MaxLengthExtValidatorDirective } from './max-length-ext.directive';
@NgModule({
imports: [
CoreModule,
- AccountModule
+ //AccountModule
],
declarations: [
MessageComponent,
@@ -18,7 +18,7 @@ import { MaxLengthExtValidatorDirective } from './max-length-ext.directive';
],
exports: [
CoreModule,
- AccountModule,
+ // AccountModule,
MessageComponent,
MaxLengthExtValidatorDirective
],