From 4f659c4af098745068a98572d3308e982ba3ffe9 Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Tue, 19 Dec 2023 10:06:28 +0200 Subject: [PATCH] pkp/pkp-lib#7505 Fix testing regression --- .../ListPanel/contributors/ContributorsListPanel.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/ListPanel/contributors/ContributorsListPanel.vue b/src/components/ListPanel/contributors/ContributorsListPanel.vue index c6cabb85b..c51c35630 100644 --- a/src/components/ListPanel/contributors/ContributorsListPanel.vue +++ b/src/components/ListPanel/contributors/ContributorsListPanel.vue @@ -376,7 +376,7 @@ export default { openPreviewModal() { this.isLoading = true; - this.getAndUpdatePublication(); + this.getAndUpdatePublication(true); }, /** @@ -636,13 +636,17 @@ export default { * Update the publication in the background so that * any author strings are updated */ - getAndUpdatePublication() { + getAndUpdatePublication(openPreview = false) { $.ajax({ url: this.publicationApiUrl, context: this, type: 'GET', success(publication) { this.$emit('updated:publication', publication); + + if (openPreview) { + this.isModalOpenedPreview = true; + } }, complete() { this.isLoading = false;