Skip to content

Commit

Permalink
- styling: datatables now have striped rows
Browse files Browse the repository at this point in the history
- refactor: renamed enpoints to align with ReqType enum
- refactor: parent component properties moved to Belongs relations
  • Loading branch information
mlhaufe committed Oct 23, 2024
1 parent 1d80102 commit 39e08a4
Show file tree
Hide file tree
Showing 149 changed files with 1,623 additions and 1,322 deletions.
109 changes: 0 additions & 109 deletions components/WorkboxDataView.vue

This file was deleted.

2 changes: 1 addition & 1 deletion components/XDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const onEditDialogCancel = () => {
</Toolbar>
<DataTable ref="dataTable" :value="props.datasource as unknown as any[]" dataKey="id" v-model:filters="filters"
:globalFilterFields="Object.keys(props.datasource?.[0] ?? {})" :sortField="sortField" :sortOrder="1"
:loading="props.loading">
:loading="props.loading" stripedRows>
<Column
v-for="key of Object.keys(props.viewModel).filter(k => props.viewModel[k as keyof RowType] !== 'hidden')"
:key="key" :field="key" :header="camelCaseToTitle(key)" sortable>
Expand Down
4 changes: 2 additions & 2 deletions middleware/org-solution-check.global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
const { organizationslug, solutionslug } = to.params

if (organizationslug) {
const organizations = await $fetch('/api/organizations', {
const organizations = await $fetch('/api/organization', {
query: { slug: organizationslug }
})

if (!(organizations ?? []).length) {
return navigateTo('/')
} else if (solutionslug) {
const solutions = await $fetch('/api/solutions', {
const solutions = await $fetch('/api/solution', {
query: {
organizationSlug: organizationslug,
slug: solutionslug
Expand Down
Loading

0 comments on commit 39e08a4

Please sign in to comment.