diff --git a/src/portal/src/app/base/left-side-nav/system-robot-accounts/new-robot/new-robot.component.html b/src/portal/src/app/base/left-side-nav/system-robot-accounts/new-robot/new-robot.component.html index b9b65df29..a3cb1a986 100644 --- a/src/portal/src/app/base/left-side-nav/system-robot-accounts/new-robot/new-robot.component.html +++ b/src/portal/src/app/base/left-side-nav/system-robot-accounts/new-robot/new-robot.component.html @@ -269,7 +269,7 @@ {{ 'ROBOT_ACCOUNT.SELECT_PROJECT_PERMISSIONS' | translate }} - +
diff --git a/src/portal/src/app/base/left-side-nav/system-robot-accounts/new-robot/new-robot.component.ts b/src/portal/src/app/base/left-side-nav/system-robot-accounts/new-robot/new-robot.component.ts index 2de5190ac..6161150a6 100644 --- a/src/portal/src/app/base/left-side-nav/system-robot-accounts/new-robot/new-robot.component.ts +++ b/src/portal/src/app/base/left-side-nav/system-robot-accounts/new-robot/new-robot.component.ts @@ -16,6 +16,7 @@ import { distinctUntilChanged, filter, finalize, + map, switchMap, } from 'rxjs/operators'; import { @@ -119,7 +120,6 @@ export class NewRobotComponent implements OnInit, OnDestroy { if (!this._nameSubscription) { this._nameSubscription = this._nameSubject .pipe( - debounceTime(500), distinctUntilChanged(), filter(name => { if ( @@ -131,6 +131,11 @@ export class NewRobotComponent implements OnInit, OnDestroy { } return name?.length > 0; }), + map(name => { + this.checkNameOnGoing = !!name; + return name; + }), + debounceTime(500), switchMap(name => { this.isNameExisting = false; this.checkNameOnGoing = true; @@ -490,6 +495,7 @@ export class NewRobotComponent implements OnInit, OnDestroy { } clrWizardPageOnLoad() { + this.inlineAlertComponent.close(); this.showPage3 = true; } diff --git a/src/portal/src/app/base/project/robot-account/add-robot/add-robot.component.html b/src/portal/src/app/base/project/robot-account/add-robot/add-robot.component.html index b03048fce..a399d6eef 100644 --- a/src/portal/src/app/base/project/robot-account/add-robot/add-robot.component.html +++ b/src/portal/src/app/base/project/robot-account/add-robot/add-robot.component.html @@ -235,13 +235,14 @@ {{ 'ROBOT_ACCOUNT.SELECT_PERMISSIONS' | translate }} - +
{ if ( @@ -99,6 +99,11 @@ export class AddRobotComponent implements OnInit, OnDestroy { } return name?.length > 0; }), + map(name => { + this.checkNameOnGoing = !!name; + return name; + }), + debounceTime(500), switchMap(name => { this.isNameExisting = false; this.checkNameOnGoing = true; @@ -295,5 +300,9 @@ export class AddRobotComponent implements OnInit, OnDestroy { return new Date() >= this.calculateExpiresAt(); } + clrWizardPageOnLoad() { + this.inlineAlertComponent.close(); + } + protected readonly PermissionSelectPanelModes = PermissionSelectPanelModes; }