From c37eea1cdba0810209a9c7e19457f5a17cad5bec Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Thu, 11 Apr 2024 05:21:48 +0400 Subject: [PATCH] Hidden upper part of smart annotation modal [SCI-10589] --- app/javascript/vue/experiments/modals/edit.vue | 4 ++++ app/views/shared/smart_annotation/_menu.html.erb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/vue/experiments/modals/edit.vue b/app/javascript/vue/experiments/modals/edit.vue index deecc4e21..4ec0028ad 100644 --- a/app/javascript/vue/experiments/modals/edit.vue +++ b/app/javascript/vue/experiments/modals/edit.vue @@ -64,6 +64,7 @@ export default { }, mounted() { SmartAnnotation.init($(this.$refs.description), false); + $(this.$refs.modal).on('hidden.bs.modal', this.handleAtWhoModalClose); }, mixins: [modalMixin], methods: { @@ -80,6 +81,9 @@ export default { HelperModule.flashAlertMsg(error.response.data.message, 'danger'); }); }, + handleAtWhoModalClose() { + $('.atwho-view.old').css('display', 'none'); + } }, }; diff --git a/app/views/shared/smart_annotation/_menu.html.erb b/app/views/shared/smart_annotation/_menu.html.erb index b15b497c5..b37c165dc 100644 --- a/app/views/shared/smart_annotation/_menu.html.erb +++ b/app/views/shared/smart_annotation/_menu.html.erb @@ -11,7 +11,7 @@
-
<% if repositories.length > 1 %> +
<% if repositories.length > 1 %>
<% repositories.each do |repository| %>