Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkp/pkp-lib#9744 [OJS] Migrate older Tables to newer Table API #4378

Merged
merged 10 commits into from
Sep 5, 2024

Conversation

blesildaramirez
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

import FailedJobDetailsPage from '@/components/Container/FailedJobDetailsPage.vue';
import JobsPage from '@/pages/jobs/JobsPage.vue';
import FailedJobsPage from '@/pages/jobs/FailedJobsPage.vue';
import FailedJobDetailsPage from '@/pages/jobs/FailedJobDetailsPage.vue';
import DashboardPage from '@/pages/dashboard/DashboardPage.vue';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, these should not be necessary because there are now imported via Page.vue?

<table-row class="pkpStats__noRecords">
<table-cell :colspan="tableColumns.length" class="!py-8 !px-4 !text-center">
<pkp-table-row class="pkpStats__noRecords">
<pkp-table-cell :colspan="tableColumns.length" class="!py-8 !px-4 !text-center">
<template v-if="isLoadingItems">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ops.. here you can just use table-cell.

Reason why we expose the components with pkp prefix globally is so plugins can use them.

On our own pages&components we always import and register them locally. So for stats you are adding table-cell via 'components:'.. therefore no need to prefix that.

Also the no-content thingy is already supposed to insert correct row and cell with correct colspan. So you should just put there the spinner. But if its not working as expected let me know.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I updated the component names now to use the local version. And remove the table-row and table-cell for the no-content slot.

@blesildaramirez blesildaramirez merged commit a47fddd into pkp:main Sep 5, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants