Skip to content

Commit

Permalink
bug: fix config names and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
carlinmack committed May 13, 2024
1 parent c18557e commit 8e4c426
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions invenio_jobs/administration/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class JobsListView(AdminResourceListView):
"next_run": {"text": _("Next run"), "order": 5, "width": 3},
}

search_config_name = "RDM_JOBS_SEARCH"
search_sort_config_name = "RDM_JOBS_SORT_OPTIONS"
search_facets_config_name = "RDM_JOBS_FACETS"
search_config_name = "JOBS_SEARCH"
search_sort_config_name = "JOBS_SORT_OPTIONS"
search_facets_config_name = "JOBS_FACETS"

actions = {
"settings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { Button, Icon } from "semantic-ui-react";
import { i18next } from "@translations/invenio_app_rdm/i18next";

export class SystemJobActions extends Component {
// constructor(props) {
// super(props);
// }
// constructor(props) {
// super(props);
// }

handleAction = async (action) => {
const actionConfig = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class JobSearchLayout extends Component {
render() {
const { config, appName } = this.props;
return (
<SearchAppResultsPane layoutOptions={config.layoutOptions} appName={appName} />
<SearchAppResultsPane
layoutOptions={config.layoutOptions}
appName={appName}
/>
);
}
}
Expand Down
8 changes: 4 additions & 4 deletions invenio_jobs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
JOBS_ADMINISTRATION_DISABLED = False
from invenio_i18n import lazy_gettext as _

RDM_JOBS_FACETS = {}
JOBS_FACETS = {}

RDM_JOBS_SORT_OPTIONS = {
JOBS_SORT_OPTIONS = {
"jobs": dict(
title=_("Jobs"),
fields=["jobs"],
),
"last_run_start_time": dict(
# title=_("Last run"),
title=_("Last run"),
fields=["last_run_start_time"],
),
"user": dict(
Expand All @@ -32,7 +32,7 @@
}
"""Definitions of available Jobs sort options. """

RDM_JOBS_SEARCH = {
JOBS_SEARCH = {
"facets": [],
"sort": ["jobs", "last_run_start_time", "user", "next_run"],
}
Expand Down

0 comments on commit 8e4c426

Please sign in to comment.