mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.1 KiB
23 lines
1.1 KiB
<ng-container *ngIf="field.isLocalizable && languages.length > 1">
|
|
<button *ngIf="!field.properties.isComplexUI" type="button" class="btn btn-text-secondary btn-sm mr-1" (click)="toggleShowAllControls()">
|
|
<ng-container *ngIf="showAllControls; else singleLanguage">
|
|
<span>{{ 'contents.languageModeSingle' | sqxTranslate }}</span>
|
|
</ng-container>
|
|
|
|
<ng-template #singleLanguage>
|
|
<span>{{ 'contents.languageModeAll' | sqxTranslate }}</span>
|
|
</ng-template>
|
|
</button>
|
|
|
|
<ng-container *ngIf="field.properties.isComplexUI || !showAllControls">
|
|
<sqx-language-selector size="sm" #buttonLanguages
|
|
[selectedLanguage]="language"
|
|
(selectedLanguageChange)="languageChange.emit($event)"
|
|
[languages]="languages">
|
|
</sqx-language-selector>
|
|
|
|
<sqx-onboarding-tooltip helpId="languages" [for]="buttonLanguages" position="top-right" after="120000">
|
|
{{ 'contents.validationHint' | sqxTranslate }}
|
|
</sqx-onboarding-tooltip>
|
|
</ng-container>
|
|
</ng-container>
|