Skip to content

Commit

Permalink
Add ability to customise generated edit page link in data table, use …
Browse files Browse the repository at this point in the history
…it for collections
  • Loading branch information
ml-evs committed Sep 27, 2024
1 parent 41bc175 commit 95de17d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions webapp/src/components/CollectionTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:data="collections"
:data-type="'collections'"
:global-filter-fields="['collection_id', 'title', 'creatorsList']"
:edit-page-route-prefix="collections"
/>
</template>

Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/DynamicDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ export default {
event.originalEvent.metaKey ||
event.originalEvent.altKey
) {
window.open(`/edit/${row.item_id}`, "_blank");
window.open(`/${this.editPageRoutePrefix}/${row.item_id}`, "_blank");
} else {
this.$router.push(`/edit/${row.item_id}`);
this.$router.push(`/${this.editPageRoutePrefix}/${row.item_id}`);
}
},
getComponentProps(componentName, data) {
Expand Down

0 comments on commit 95de17d

Please sign in to comment.