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

oaipmh: update admin list view #1075

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

jrcastro2
Copy link
Contributor

@jrcastro2 jrcastro2 commented Sep 22, 2022

@kpsherva kpsherva changed the base branch from feature/administration-oai2 to master September 22, 2022 13:08
* display spec with <pre> tag
* displays value with Formatter cmp
* closes inveniosoftware/invenio-administration#94
* closes inveniosoftware/invenio-administration#105
@@ -14,7 +14,7 @@ import { NotificationController } from "@js/invenio_administration/src/ui_messag
const domContainer = document.getElementById("invenio-search-config");

const sortColumns = (columns) =>
Object.entries(columns).sort((a, b) => a[1].order > b[1].order);
Object.entries(columns).sort((a, b) => a[1].order - b[1].order);
Copy link
Contributor

@kpsherva kpsherva Sep 22, 2022

Choose a reason for hiding this comment

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

why was this changed to -? I think sort function expects a boolean to be returned as a result of comparator func

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because otherwise it doesn't work, we had the same issue in invenio-adminsitration, we updated it there but forgot to change it here.
This is how it was looking before:
image

Copy link
Contributor

Choose a reason for hiding this comment

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

@jrcastro2 jrcastro2 merged commit e7e9d95 into inveniosoftware:master Sep 26, 2022
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.

Formatter missing from list view row administration: overwrite spec attribute display to <pre> tag
2 participants