@tilde-nlp/ngx-translate 2.1.39 → 2.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/modules/tld-common/models/configs/tld-translate-text-config.model.mjs +1 -1
- package/esm2020/lib/modules/tld-common/services/tld-translate-config.service.mjs +2 -1
- package/esm2020/lib/tld-translate.component.mjs +2 -2
- package/fesm2015/tilde-nlp-ngx-translate.mjs +30 -29
- package/fesm2015/tilde-nlp-ngx-translate.mjs.map +1 -1
- package/fesm2020/tilde-nlp-ngx-translate.mjs +2 -1
- package/fesm2020/tilde-nlp-ngx-translate.mjs.map +1 -1
- package/lib/modules/tld-common/models/configs/tld-translate-text-config.model.d.ts +2 -0
- package/package.json +1 -1
- package/src/assets/webcomponent/tld-translate.js +1 -1
- package/tilde-nlp-ngx-translate-2.1.40.tgz +0 -0
- package/tilde-nlp-ngx-translate-2.1.39.tgz +0 -0
|
@@ -3562,6 +3562,7 @@ class TldTranslateConfigService {
|
|
|
3562
3562
|
this._textConfig.progressIndicatorTimeoutMiliSeconds = text?.progressIndicatorTimeoutMiliSeconds ?? 2000;
|
|
3563
3563
|
this._textConfig.progressIndicatorTitleVisibleForVendors = text?.progressIndicatorTitleVisibleForVendors ?? ["ETranslation"];
|
|
3564
3564
|
this._textConfig.progressIndicatorVisible = text?.progressIndicatorVisible ?? false;
|
|
3565
|
+
this._textConfig.showTranslateButton = text?.showTranslateButton ?? true;
|
|
3565
3566
|
this._audioConfig.audioTextInput = audio?.audioTextInput ?? false;
|
|
3566
3567
|
// Not setting default url because there is no service provided by Tilde and this is not used by default in website project.
|
|
3567
3568
|
this._audioConfig.audioApiUrl = audio?.audioApiUrl;
|
|
@@ -10367,7 +10368,7 @@ class TldTranslateComponent {
|
|
|
10367
10368
|
|| this.translateTextService.isDictating;
|
|
10368
10369
|
}
|
|
10369
10370
|
get showTranslateButton() {
|
|
10370
|
-
return !this.translateFileService.multipleFileUploadActive;
|
|
10371
|
+
return this.configService.textConfig.showTranslateButton && !this.translateFileService.multipleFileUploadActive;
|
|
10371
10372
|
}
|
|
10372
10373
|
// this param is necessary to remove max height if multiple file component is active, since there shouldn't be max height in that case.
|
|
10373
10374
|
get isMultipleFilesActive() {
|