From aa6221f1d39a86adaa9cd9cdb584ff8775199fa3 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 24 Aug 2021 23:16:35 +0200 Subject: [PATCH 1/2] bugfix: autofocus editor to bind search function Signed-off-by: Stefan Dej --- src/components/inputs/Codemirror.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/inputs/Codemirror.vue b/src/components/inputs/Codemirror.vue index 85027964..1b3f33c8 100644 --- a/src/components/inputs/Codemirror.vue +++ b/src/components/inputs/Codemirror.vue @@ -6,7 +6,7 @@ @@ -72,7 +72,6 @@ export default class Codemirror extends Mixins(BaseMixin) { }) this.cminstance = this.codemirror - this.$nextTick(() => { this.setCmValue(this.code || this.value || this.content) @@ -106,5 +105,9 @@ export default class Codemirror extends Mixins(BaseMixin) { return extensions } + + visibilityChanged(isVisible: boolean) { + if (isVisible) this.cminstance?.focus() + } } From 3c7f9ae7ba963a42bd2d52c82a6445397910f061 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Thu, 26 Aug 2021 19:17:12 +0200 Subject: [PATCH 2/2] locale(fr): fix one type in settings console tab Signed-off-by: Stefan Dej --- src/locales/fr.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/fr.json b/src/locales/fr.json index 16ebe7ae..2476b6af 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -352,7 +352,7 @@ "Settings": { "Cancel": "Annuler", "ConsoleTab": { - "AddFilter": "ajouter filter", + "AddFilter": "ajouter filtre", "Console": "Console", "CreateHeadline": "Créer filtre", "Direction": "Direction",