Skip to content

Commit

Permalink
custom-actions: Allow sorting configuration table by name or type
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Feb 13, 2025
1 parent e5af6bf commit c9f243b
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/views/ConfigurationActionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,9 @@
items-per-page="10"
class="elevation-1 bg-transparent rounded-lg mb-8"
theme="dark"
:headers="headers"
:style="interfaceStore.globalGlassMenuStyles"
>
<template #headers>
<tr>
<th class="text-left">
<p class="text-[16px] font-bold">Name</p>
</th>
<th class="text-center">
<p class="text-[16px] font-bold">Type</p>
</th>
<th class="text-right">
<p class="text-[16px] font-bold">Actions</p>
</th>
</tr>
</template>
<template #item="{ item }">
<tr>
<td>
Expand Down Expand Up @@ -250,6 +238,12 @@ const allActionConfigs = computed<ActionConfig[]>(() => {
return configs
})
const headers = [
{ title: 'Name', key: 'name', sortable: true, align: 'start' },
{ title: 'Type', key: 'type', sortable: true, align: 'center' },
{ title: 'Actions', key: 'actions', sortable: false, align: 'end' },
]
const loadAllActions = (): void => {
// Update our reactive refs
httpRequestActions.value = { ...getAllHttpRequestActionConfigs() }
Expand Down

0 comments on commit c9f243b

Please # to comment.