From 23ede59730d365f27d2e5f20037d48e099d64efa Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Tue, 19 Dec 2023 12:19:19 +0400 Subject: [PATCH] hound fix --- app/javascript/packs/vue/open_locally_menu.js | 2 -- .../vue/shared/content/attachments/open_locally_menu.vue | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/javascript/packs/vue/open_locally_menu.js b/app/javascript/packs/vue/open_locally_menu.js index 4fa8be201..d7e6d6c2b 100644 --- a/app/javascript/packs/vue/open_locally_menu.js +++ b/app/javascript/packs/vue/open_locally_menu.js @@ -1,5 +1,3 @@ -/* global notTurbolinksPreview */ - import { createApp } from 'vue/dist/vue.esm-bundler.js'; import OpenLocallyMenu from '../../vue/shared/content/attachments/open_locally_menu.vue'; import { mountWithTurbolinks } from './helpers/turbolinks.js'; diff --git a/app/javascript/vue/shared/content/attachments/open_locally_menu.vue b/app/javascript/vue/shared/content/attachments/open_locally_menu.vue index a59f1521b..64bcf9f6b 100644 --- a/app/javascript/vue/shared/content/attachments/open_locally_menu.vue +++ b/app/javascript/vue/shared/content/attachments/open_locally_menu.vue @@ -48,16 +48,16 @@ }) } if (this.canOpenLocally) { - console.log(this.localAppName) - const text = this.localAppName ? - this.i18n.t('attachments.open_locally_in', { application: this.localAppName }) : - this.i18n.t('attachments.open_locally') + const text = this.localAppName + ? this.i18n.t('attachments.open_locally_in', { application: this.localAppName }) + : this.i18n.t('attachments.open_locally') menu.push({ text: text, emit: 'open_locally' }) } + return menu; } }