diff --git a/.storybook/preview.js b/.storybook/preview.js index 7029879d6..645534a61 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -22,7 +22,7 @@ import Tab from '@/components/Tabs/Tab.vue'; import Tabs from '@/components/Tabs/Tabs.vue'; import FloatingVue from 'floating-vue'; -import PkpDialog from '@/components/Modal/Dialog.vue'; +import ModalManager from '@/components/Modal/ModalManager.vue'; import VueScrollTo from 'vue-scrollto'; @@ -116,9 +116,9 @@ const preview = { /** Globally Available Dialog */ (story) => ({ setup() {}, - components: {story, PkpDialog}, + components: {story, ModalManager}, template: `
- +
`, }), diff --git a/src/components/Container/Page.vue b/src/components/Container/Page.vue index d762f98a8..c15ecff97 100644 --- a/src/components/Container/Page.vue +++ b/src/components/Container/Page.vue @@ -1,6 +1,5 @@ diff --git a/src/components/Modal/Dialog.vue b/src/components/Modal/Dialog.vue index acb28f5e0..8246acda6 100644 --- a/src/components/Modal/Dialog.vue +++ b/src/components/Modal/Dialog.vue @@ -1,6 +1,6 @@ diff --git a/src/components/Modal/SideModalBodyAjax.vue b/src/components/Modal/SideModalBodyLegacyAjax.vue similarity index 73% rename from src/components/Modal/SideModalBodyAjax.vue rename to src/components/Modal/SideModalBodyLegacyAjax.vue index 604a6c09b..08560fbf0 100644 --- a/src/components/Modal/SideModalBodyAjax.vue +++ b/src/components/Modal/SideModalBodyLegacyAjax.vue @@ -1,9 +1,9 @@ @@ -115,14 +113,17 @@ import {storeToRefs} from 'pinia'; import PkpButton from '@/components/Button/Button.vue'; import SideModalBody from '@/components/Modal/SideModalBody.vue'; import StageBubble from '@/components/StageBubble/StageBubble.vue'; -import SideModal from '@/components/Modal/SideModal.vue'; -import AssignEditorsModal from '@/pages/submissions/AssignEditorsModal.vue'; + +import {useSubmissionsPageStore} from './submissionsPageStore'; import {useSubmissionSummaryStore} from '@/pages/submissions/submissionSummaryStore'; const pkp = window.pkp; -const summaryStore = useSubmissionSummaryStore(); +const props = defineProps({selectedSubmission: {type: Object, required: true}}); + +const summaryStore = useSubmissionSummaryStore(props); +const dashboardStore = useSubmissionsPageStore(props); const {submission} = storeToRefs(summaryStore); diff --git a/src/pages/submissions/SubmissionsPage.vue b/src/pages/submissions/SubmissionsPage.vue index b0d349bd2..3efa0d6a5 100644 --- a/src/pages/submissions/SubmissionsPage.vue +++ b/src/pages/submissions/SubmissionsPage.vue @@ -50,40 +50,14 @@ - - - - - - - - - -