From b3c089b246e604953928c2da27dcdbdef8014c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Thuret?= Date: Mon, 25 Oct 2021 17:20:57 +0200 Subject: [PATCH] Dont show switch type if files translation disabled --- app/static/js/app.js | 2 ++ app/templates/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/static/js/app.js b/app/static/js/app.js index 7dba8d9..4016e1e 100644 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -36,6 +36,7 @@ document.addEventListener('DOMContentLoaded', function(){ inputFile: false, loadingFileTranslation: false, translatedFileUrl: false, + disableFilesTranslation: false, }, mounted: function(){ var self = this; @@ -51,6 +52,7 @@ document.addEventListener('DOMContentLoaded', function(){ self.charactersLimit = self.settings.charLimit; self.suggestions = self.settings.suggestions; self.supportedFilesFormat = self.settings.supportedFilesFormat; + self.disableFilesTranslation = self.settings.disableFilesTranslation; }else { self.error = "Cannot load /frontend/settings"; self.loading = false; diff --git a/app/templates/index.html b/app/templates/index.html index c4f7c33..8aee2c1 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -105,7 +105,7 @@

Translation API

-
+