Skip to content

Commit

Permalink
bugfix telegram-notice can not input bot-token (#1465)
Browse files Browse the repository at this point in the history
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: 淞筱 <105542329+a-little-fool@users.noreply.github.com>
  • Loading branch information
tomsun28 and a-little-fool authored Jan 3, 2024
1 parent 36d8bbd commit dff47a7
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,14 @@
/>
</nz-form-control>
</nz-form-item>

<nz-form-item *ngIf="receiver.type === 7">
<nz-form-label [nzRequired]="receiver.type === 7" [nzSpan]="7" nzFor="tgBotToken">{{
'alert.notice.type.telegram-bot-token' | i18n
}}</nz-form-label>
<nz-form-control [nzSpan]="12" [nzErrorTip]="'validation.required' | i18n">
<input [(ngModel)]="receiver.tgBotToken" nz-input [required]="receiver.type === 7" name="tgBotToken" type="text" />
</nz-form-control>
</nz-form-item>
<nz-form-item *ngIf="receiver.type === 7">
<nz-form-label [nzRequired]="receiver.type === 7" [nzSpan]="7" nzFor="tgUserId">{{
'alert.notice.type.telegram-bot-user-id' | i18n
Expand Down

0 comments on commit dff47a7

Please sign in to comment.