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; } }