Skip to content

Commit

Permalink
add judgment this.newFeedbackSessionName.length > this.FEEDBACK_SESSI…
Browse files Browse the repository at this point in the history
…ON_NAME_MAX_LENGTH
  • Loading branch information
u7861723 committed Oct 25, 2024
1 parent 5448823 commit 18785ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export class CopySessionModalComponent {
this.statusMessageService.showErrorToast('The field "Name for copied session" should not be whitespace.');
return;
}

Check failure on line 38 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

Closing curly brace does not appear on the same line as the subsequent block

Check failure on line 38 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (windows-latest)

Closing curly brace does not appear on the same line as the subsequent block
else if(this.newFeedbackSessionName.length > this.FEEDBACK_SESSION_NAME_MAX_LENGTH){

Check failure on line 39 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

Expected space(s) after "if"

Check failure on line 39 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

Unnecessary 'else' after 'return'

Check failure on line 39 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

Missing space before opening brace

Check failure on line 39 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (windows-latest)

Expected space(s) after "if"

Check failure on line 39 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (windows-latest)

Unnecessary 'else' after 'return'

Check failure on line 39 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (windows-latest)

Missing space before opening brace
this.statusMessageService.showErrorToast('The field "Name for copied session" should less than ${this.FEEDBACK_SESSION_NAME_MAX_LENGTH}.');

Check failure on line 40 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

This line has a length of 149. Maximum allowed is 120

Check failure on line 40 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

Unexpected template string expression

Check failure on line 40 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (windows-latest)

This line has a length of 149. Maximum allowed is 120

Check failure on line 40 in src/web/app/components/copy-session-modal/copy-session-modal.component.ts

View workflow job for this annotation

GitHub Actions / lint (windows-latest)

Unexpected template string expression
return;
}

this.activeModal.close({
newFeedbackSessionName: this.newFeedbackSessionName,
Expand Down

0 comments on commit 18785ae

Please sign in to comment.