Skip to content

Commit

Permalink
Enable remote searching in user/group management pages.
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Aug 18, 2022
1 parent 39378c2 commit e157bcc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
6 changes: 6 additions & 0 deletions deb/openmediavault/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
openmediavault (6.0.36-1) stable; urgency=low

* Enable remote searching in user/group management pages.

-- Volker Theile <volker.theile@openmediavault.org> Thu, 18 Aug 2022 10:16:56 +0200

openmediavault (6.0.35-1) stable; urgency=low

* Update locale files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ finish:
}
// Filter the result.
return $this->applyFilter($users, $params['start'],
$params['limit'], $params['sortfield'], $params['sortdir']);
$params['limit'], $params['sortfield'], $params['sortdir'],
$params['search']);
}

/**
Expand Down Expand Up @@ -798,7 +799,8 @@ finish:
}
// Filter result.
return $this->applyFilter($groups, $params['start'],
$params['limit'], $params['sortfield'], $params['sortdir']);
$params['limit'], $params['sortfield'], $params['sortdir'],
$params['search']);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,21 @@ export type DatatablePageConfig = {
limit?: number;
// If set to `true`, the parameters `start` and `limit` from the data
// table paging component are added to the RPC request parameters.
// Defaults to `false`.
remotePaging?: boolean;
// If set to `true`, the sorting order and property name of the current
// active column of the data table are added as parameters `sortdir` and
// `sortfield` to the RPC request parameters.
// `sortfield` to the RPC request parameters. Defaults to `false`.
remoteSorting?: boolean;
// If set to `true`, the content of the search field of the data table
// is added as parameter `search` to the RPC request parameters.
// Defaults to `false`.
remoteSearching?: boolean;
// Automatically load the data after datatable has been initialized.
// Defaults to `true`.
autoLoad?: boolean;
// The frequency in milliseconds with which the data should be reloaded.
// Defaults to `false`.
autoReload?: boolean | number;
sorters?: Array<Sorter>;
store?: DataStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class GroupDatatablePageComponent {
autoReload: false,
remoteSorting: true,
remotePaging: true,
remoteSearching: true,
hasSearchField: true,
rowId: 'name',
rowEnumFmt: '{{ name }}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class UserDatatablePageComponent {
autoReload: false,
remoteSorting: true,
remotePaging: true,
remoteSearching: true,
hasSearchField: true,
rowId: 'name',
rowEnumFmt: '{{ name }}',
Expand Down

0 comments on commit e157bcc

Please sign in to comment.