Skip to content

Commit

Permalink
Merge branch 'reset-theme-default' of lkiesow/opencast-admin-interfac…
Browse files Browse the repository at this point in the history
…e into main

Pull request #848

  Properly set theme default configuration
  • Loading branch information
gregorydlogan committed Sep 13, 2024
2 parents eb117d4 + af82e2c commit 329a3f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/events/partials/modals/SeriesDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const SeriesDetails = ({

const user = useAppSelector(state => getUserInformation(state));
const orgProperties = useAppSelector(state => getOrgProperties(state));
const themesEnabled = (orgProperties['admin.themes.enabled'] || 'true').toLowerCase() === 'true';
const themesEnabled = (orgProperties['admin.themes.enabled'] || 'false').toLowerCase() === 'true';

// information about each tab
const tabs = [
Expand Down
2 changes: 1 addition & 1 deletion src/components/events/partials/wizards/NewSeriesWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const NewSeriesWizard: React.FC<{
const user = useAppSelector(state => getUserInformation(state));
const orgProperties = useAppSelector(state => getOrgProperties(state));

const themesEnabled = (orgProperties['admin.themes.enabled'] || 'true').toLowerCase() === 'true';
const themesEnabled = (orgProperties['admin.themes.enabled'] || 'false').toLowerCase() === 'true';

const initialValues = getInitialValues(metadataFields, extendedMetadata, user);

Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/MainNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const MainNav = ({
const orgProperties = useAppSelector(state => getOrgProperties(state));

const statisticsEnabled = (orgProperties['admin.statistics.enabled'] || 'false').toLowerCase() === 'true';
const themesEnabled = (orgProperties['admin.themes.enabled'] || 'true').toLowerCase() === 'true';
const themesEnabled = (orgProperties['admin.themes.enabled'] || 'false').toLowerCase() === 'true';

const loadEvents = () => {
dispatch(fetchFilters("events"));
Expand Down

0 comments on commit 329a3f4

Please sign in to comment.