From 39a11f677483485e830cdf708c78284c3b705c67 Mon Sep 17 00:00:00 2001 From: wandji20 Date: Mon, 1 Apr 2024 21:43:29 +0100 Subject: [PATCH] Add missing BETA tag on import with protocol parser [SCI-10559] --- app/assets/stylesheets/protocol_management.scss | 14 -------------- app/javascript/vue/protocols/table.vue | 5 ++++- app/javascript/vue/shared/menu_dropdown.vue | 4 ++-- config/locales/en.yml | 1 + 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/app/assets/stylesheets/protocol_management.scss b/app/assets/stylesheets/protocol_management.scss index 0c2b76fad..ac6d24cb4 100644 --- a/app/assets/stylesheets/protocol_management.scss +++ b/app/assets/stylesheets/protocol_management.scss @@ -22,20 +22,6 @@ } } -.btn-beta-icon { - &::after { - background-color: var(--sn-coral); - border-radius: 1px; - color: var(--sn-white); - content: "BETA"; - font-size: .5rem; - left: 7rem; - padding: .125rem .25rem; - position: absolute; - top: .1rem; - } -} - .dropdown-menu { border: 0; } diff --git a/app/javascript/vue/protocols/table.vue b/app/javascript/vue/protocols/table.vue index 3f0bdad24..72ef552ad 100644 --- a/app/javascript/vue/protocols/table.vue +++ b/app/javascript/vue/protocols/table.vue @@ -211,7 +211,10 @@ export default { if (this.docxParserEnabled) { importMenu.menuItems.push({ emit: 'import_docx', - text: this.i18n.t('protocols.index.import_docx') + text: `${this.i18n.t('protocols.index.import_docx')} + + ${this.i18n.t('protocols.index.beta')} + ` }); } diff --git a/app/javascript/vue/shared/menu_dropdown.vue b/app/javascript/vue/shared/menu_dropdown.vue index ec8229422..739b0f84a 100644 --- a/app/javascript/vue/shared/menu_dropdown.vue +++ b/app/javascript/vue/shared/menu_dropdown.vue @@ -18,6 +18,7 @@
- {{ item.text }}