Skip to content

Commit

Permalink
pkp/pkp-lib#9992 Bug fixes for side modal migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jul 2, 2024
1 parent 76ca2af commit 018168e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/Container/ManageEmailsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ export default {
* @param {Object} template The updated values of the template
*/
templateSaved(template) {
setTimeout(() => this.$modal.hide('template'), 1000);
const {closeSideModal} = useModal();
setTimeout(() => closeSideModal(EditTemplateModal), 1000);
if (!this.currentMailable.supportsTemplates) {
return;
Expand Down
4 changes: 3 additions & 1 deletion src/components/ListPanel/doi/DoiListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export default {
isDeposited: computed(() => this.isDeposited),
item: this.item,
doiListColumns: this.doiListColumns,
mutableDois: this.mutableDois,
mutableDois: computed(() => this.mutableDois),
isEditingDois: computed(() => this.isEditingDois),
onSaveDois: this.saveDois,
onEditDois: this.editDois,
Expand All @@ -518,6 +518,7 @@ export default {
this.isEditingDois = true;
},
saveDois() {
console.log('saveDois()');
this.mutableDois.forEach((mutableDoi) => {
const oldDoiItem = this.item.doiObjects.find(
(item) => item.uid === mutableDoi.uid,
Expand All @@ -536,6 +537,7 @@ export default {
this.isSaving = true;
if (Object.keys(this.itemsToUpdate).length !== 0) {
Object.keys(this.itemsToUpdate).forEach((itemId) => {
console.log('postUpdateDoi:', this.itemsToUpdate[itemId]);
this.postUpdatedDoi(this.itemsToUpdate[itemId]);
});
} else {
Expand Down

0 comments on commit 018168e

Please sign in to comment.