bugfix telegram-notice can not input bot-token (#1465)

Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: 淞筱 <105542329+a-little-fool@users.noreply.github.com>
This commit is contained in:
tomsun28
2024-01-03 11:23:49 +08:00
committed by GitHub
co-authored by 淞筱
parent 9a2ff254c5
commit 810a80f1f3
@@ -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