Skip to content

Commit

Permalink
pkp/pkp-lib#10701 Bug fix, incorrect upload process used for copyedit…
Browse files Browse the repository at this point in the history
…ing files + notification refresh on data reload
  • Loading branch information
jardakotesovec committed Dec 16, 2024
1 parent bf77dc6 commit 8d50a95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/managers/FileManager/useFileManagerConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const FileManagerConfigurations = {
],
actions: [
Actions.FILE_LIST,
Actions.FILE_UPLOAD,
Actions.FILE_SELECT_UPLOAD,
Actions.FILE_EDIT,
Actions.FILE_DELETE,
Actions.FILE_SEE_NOTES,
Expand All @@ -156,7 +156,7 @@ export const FileManagerConfigurations = {
],
actions: [
Actions.FILE_LIST,
Actions.FILE_UPLOAD,
Actions.FILE_SELECT_UPLOAD,
Actions.FILE_EDIT,
Actions.FILE_DELETE,
Actions.FILE_SEE_NOTES,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {computed, watch} from 'vue';
import {useUrl} from '@/composables/useUrl';
import {useFetch} from '@/composables/useFetch';
import {useApp} from '@/composables/useApp';
import {useDataChanged} from '@/composables/useDataChanged';
const props = defineProps({
submission: {type: Object, required: true},
Expand Down Expand Up @@ -115,6 +116,9 @@ watch(
{immediate: true},
);
/** Reload notifications when data on screen changes */
useDataChanged(() => fetch());
const notificationsToDisplay = computed(() => {
const notifications = [];
const general = data?.value?.content?.general;
Expand Down

0 comments on commit 8d50a95

Please sign in to comment.