Skip to content

Commit

Permalink
Merge pull request #653 from noi-techpark/feature/tagsharedviewoptimi…
Browse files Browse the repository at this point in the history
…zation

tag view optimizations
  • Loading branch information
RudiThoeni authored Nov 7, 2024
2 parents df48c00 + aa8abe7 commit 0019fd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
11 changes: 9 additions & 2 deletions databrowser/src/config/tourism/tag/tag.listView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,25 @@ export const tagListView: ListViewConfig = {
objectMapping: { text: 'Id' },
},
{
title: 'TagName',
title: 'Name',
component: CellComponent.StringCell,
class: 'w-60',
objectMapping: { text: 'TagName.{language}' },
},
{
title: 'ValidForEntity',
title: 'Valid For',
component: CellComponent.ArrayCell,
class: 'w-60',
objectMapping: { items: 'ValidForEntity' },
params: { separator: ', ' },
},
{
title: 'Tag Types',
component: CellComponent.ArrayCell,
class: 'w-60',
objectMapping: { items: 'Types' },
params: { separator: ', ' },
},
{
title: 'Source',
component: CellComponent.StringCell,
Expand Down
15 changes: 0 additions & 15 deletions databrowser/src/config/tourism/tag/tag.sharedView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,6 @@ export const tagSharedView = (): DetailViewConfig | EditViewConfig => ({
component: CellComponent.StringCell,
objectMapping: { text: 'TagName.{language}' },
},
{
title: 'Source',
component: CellComponent.SelectWithOptionsCell,
class: 'w-60',
objectMapping: {
value: 'Source',
},
params: {
showAddNewValue: 'true',
showValueAsLabelFallback: 'true',
url: withOdhBaseUrl(
'/v1/Distinct?odhtype=tag&fields=Source&rawsort=Source&getasarray=true'
),
},
},
{
title: 'Types',
component: CellComponent.CustomDataArrayCell,
Expand Down

0 comments on commit 0019fd0

Please sign in to comment.