Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MauserBitfly committed Aug 12, 2024
1 parent b530553 commit 358b36a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions frontend/components/notifications/NotificationsMachinesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ const pageSize = ref<number>(10)
const { t: $t } = useTranslation()
const {
isLoading,
machineNotifications,
onSort,
query,
setCursor,
setPageSize,
setSearch,
machineNotifications,
query,
isLoading,
} = useNotificationsMachineStore()
const colsVisible = computed(() => {
Expand All @@ -38,8 +38,8 @@ const colsVisible = computed(() => {
<BcTable
:data="machineNotifications"
data-key="notification_id"
:cursor="cursor"
:page-size="pageSize"
:cursor
:page-size
:selected-sort="query?.sort"
:loading="isLoading"
:add-spacer="true"
Expand Down
8 changes: 6 additions & 2 deletions frontend/stores/notifications/useNotificationsMachineStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export function useNotificationsMachineStore() {

const { fetch } = useCustomFetch()
const { data } = storeToRefs(notificationsMachineStore())
const { query, pendingQuery, cursor, pageSize, onSort, setCursor, setPageSize, setSearch, setStoredQuery, isStoredQuery } = useTableQuery({ limit: 10, sort: 'timestamp:desc' }, 10)
const {
cursor, isStoredQuery, onSort, pageSize, pendingQuery, query, setCursor, setPageSize, setSearch, setStoredQuery,
} = useTableQuery({
limit: 10, sort: 'timestamp:desc',
}, 10)
const isLoading = ref(false)

async function loadMachineNotifications(q: TableQueryParams) {
Expand Down Expand Up @@ -53,8 +57,8 @@ export function useNotificationsMachineStore() {

return {
cursor,
machineNotifications,
isLoading,
machineNotifications,
onSort,
pageSize,
query: pendingQuery,
Expand Down

0 comments on commit 358b36a

Please sign in to comment.