Skip to content

Commit

Permalink
Merge branch 'master' into 19-support-both-gridjs-and-datagrids-own-f…
Browse files Browse the repository at this point in the history
…rontend
  • Loading branch information
daniel-werner committed Mar 22, 2024
2 parents f9d7843 + 5f76153 commit 5910440
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .rmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ _default:
# BRANCH SPECIFIC CONFIG
# On master, we override the general config
master:
version-generator: semantic # More complex versionning (semantic)
version-generator:
semantic:
allow-label: true
version-persister:
vcs-tag:
tag-prefix: '' # No more prefix for tags
Expand All @@ -37,4 +39,4 @@ master:
exclude-merge-commits: true
composer-update:
name: composer.json
vcs-commit: ~ # Commit the CHANGELOG
vcs-commit: ~ # Commit the CHANGELOG
4 changes: 3 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ VERSION 0 INITIAL RELEASE
==========================

Version 0.6 - Rendering with Inertia and Vue3 - Alpha release!
14/03/2024 18:25 0.6.1-beta Clear default order when sorting
21a644d Update .rmt.yml
14/11/2023 13:45 0.6.0-alpha Alpha release
383ec5c Add inertia components
b92d9e9 Fix the search
Expand Down Expand Up @@ -60,4 +62,4 @@ VERSION 0 INITIAL RELEASE
8146a66 Add test badge

Version 0.1 - Initial release
23/03/2021 19:22 0.1.0 initial release
23/03/2021 19:22 0.1.0 initial release
3 changes: 3 additions & 0 deletions src/DataGrid/DataSources/QueryDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function search(?string $search, array $columns): void

public function sort(?array $orders, ?array $dirs): void
{
// Remove existing, default ordering
$this->query->reorder();

collect($orders)->each(fn ($field, $index) => $this->query->orderBy($field, $dirs[$index] ?? 'asc'));
}

Expand Down

0 comments on commit 5910440

Please sign in to comment.