Skip to content

Commit

Permalink
Merge branch 'feature/viewoptimizations' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
RudiThoeni committed Mar 5, 2024
2 parents 19132b1 + d4b29d0 commit eefabb3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
4 changes: 2 additions & 2 deletions databrowser/src/config/builder/tourism/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const sourceSubCategory = (): SubCategoryElement => ({
});

export const sourceSubCategoryWithDistinct = (
mainentity?: string
mainentity: string
): SubCategoryElement => ({
name: 'Source',
properties: [
Expand All @@ -30,7 +30,7 @@ export const sourceSubCategoryWithDistinct = (
component: CellComponent.InputReferenceCell,
objectMapping: { value: 'Source' },
params: {
url: withOdhBaseUrl('/v1/Source?typelist=' + mainentity),
url: withOdhBaseUrl('/v1/Source?pagesize=-1&typelist=' + mainentity),
labelSelector: 'Name.{language}',
keySelector: 'Key',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
odhTagCategory,
seasonCategory,
shortnameCell,
sourceWithInsertsSubCategory,
sourceSubCategoryWithDistinct,
textInfoCategory,
} from '../../builder/tourism';
Expand Down Expand Up @@ -54,24 +53,22 @@ export const odhActivityPoiSharedView = ():
properties: [idReadOnlyCell()],
},
dataStatesSubCategory(),
sourceWithInsertsSubCategory([
{
position: 1,
properties: [
{
title: 'Interface',
component: CellComponent.StringCell,
objectMapping: { text: 'SyncSourceInterface' },
},
{
title: 'Update mode',
component: CellComponent.StringCell,
objectMapping: { text: 'SyncUpdateMode' },
},
],
},
]),
sourceSubCategoryWithDistinct('odhactivitypoi'),
sourceSubCategoryWithDistinct(''),
{
name: '',
properties: [
{
title: 'Source Interface',
component: CellComponent.StringCell,
objectMapping: { text: 'SyncSourceInterface' },
},
{
title: 'Update mode',
component: CellComponent.StringCell,
objectMapping: { text: 'SyncUpdateMode' },
},
],
},
],
},
textInfoCategory(),
Expand Down

0 comments on commit eefabb3

Please sign in to comment.