Skip to content

Commit

Permalink
pkp/pkp-lib#7505 Fix testing regression
Browse files Browse the repository at this point in the history
  • Loading branch information
defstat committed Dec 19, 2023
1 parent fa798c7 commit 4f659c4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export default {
openPreviewModal() {
this.isLoading = true;
this.getAndUpdatePublication();
this.getAndUpdatePublication(true);
},
/**
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4f659c4

Please sign in to comment.