Skip to content

Commit

Permalink
pkp/pkp-lib#10495 Fix opening task links. By using openLegacyModal wh…
Browse files Browse the repository at this point in the history
…ich correctly handles the events
  • Loading branch information
jardakotesovec committed Dec 16, 2024
1 parent 22e5a38 commit 0142cd2
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/components/Container/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import JobsPage from '@/pages/jobs/JobsPage.vue';
import FailedJobsPage from '@/pages/jobs/FailedJobsPage.vue';
import FailedJobDetailsPage from '@/pages/jobs/FailedJobDetailsPage.vue';
import CounterReportsPage from '@/pages/counter/CounterReportsPage.vue';
import UserInvitationPage from "@/pages/userInvitation/UserInvitationPage.vue";
import AcceptInvitationPage from "@/pages/acceptInvitation/AcceptInvitationPage.vue";
import UserInvitationPage from '@/pages/userInvitation/UserInvitationPage.vue';
import AcceptInvitationPage from '@/pages/acceptInvitation/AcceptInvitationPage.vue';
import {useLegacyGridUrl} from '@/composables/useLegacyGridUrl';
export default {
name: 'Page',
Expand Down Expand Up @@ -174,17 +176,12 @@ export default {
* Open a modal showing the user's tasks
*/
openTasks() {
var opts = {
url: this.tasksUrl,
closeCallback: this.$refs.tasksButton.focus(),
};
$(
'<div id="' +
$.pkp.classes.Helper.uuid() +
'" ' +
'class="pkp_modal pkpModalWrapper" tabindex="-1"></div>',
).pkpHandler('$.pkp.controllers.modal.AjaxModalHandler', opts);
const {openLegacyModal} = useLegacyGridUrl({
component: 'grid.notifications.taskNotificationsGridHandler',
op: 'fetchGrid',
});
openLegacyModal({});
},
},
};
Expand Down

0 comments on commit 0142cd2

Please sign in to comment.