next-ucap-messenger/projects/ucap-webmessenger-ui/src/lib/components/translation-section.component.html

60 lines
1.5 KiB
HTML
Raw Normal View History

2019-12-31 14:36:32 +09:00
<div
*ngIf="
isShowTranslationPreview &&
!!translationPreviewInfo &&
2019-12-31 16:10:24 +09:00
!!translationPreviewInfo.previewInfo &&
!!translationPreviewInfo.previewInfo.translation
2019-12-31 14:36:32 +09:00
"
class="translation-preview"
>
<span class="translation-section">
2019-12-31 16:10:24 +09:00
{{ translationPreviewInfo.previewInfo.translation }}
2019-12-31 14:36:32 +09:00
</span>
<button
mat-stroked-button
(click)="onClickSendTranslationMessage(translationPreviewInfo)"
>
Send
</button>
<span class="btn-close">
<button
mat-button
matSuffix
mat-icon-button
aria-label="Close"
(click)="onClickTranslationCancel()"
>
<mat-icon>close</mat-icon>
</button>
</span>
</div>
<div>
<form name="translationForm" [formGroup]="translationForm">
<mat-form-field>
<mat-label>Dest Type</mat-label>
<mat-select
formControlName="destType"
(selectionChange)="onChangeSelection($event)"
>
<mat-option value="">번역없음</mat-option>
<mat-option *ngFor="let dest of translationDestList" [value]="dest.key"
>{{ dest.text }}
</mat-option>
</mat-select>
</mat-form-field>
<mat-slide-toggle
labelPosition="before"
[checked]="simpleView"
(change)="onChangToggleSimpleview($event)"
>Simple View</mat-slide-toggle
>
<mat-slide-toggle
labelPosition="before"
[checked]="preView"
(change)="onChangTogglePreview($event)"
>Preview</mat-slide-toggle
>
</form>
</div>