Exclude maintenance history from activity log
This commit is contained in:
@@ -35,6 +35,7 @@ export interface ActivityRow {
|
||||
|
||||
export interface ActivityQuery {
|
||||
excludeProvisioning?: boolean;
|
||||
excludeMaintenance?: boolean;
|
||||
server?: string;
|
||||
host?: string;
|
||||
type?: ActivityType;
|
||||
@@ -69,6 +70,7 @@ export function parseActivityQuery(params: URLSearchParams): ActivityQuery {
|
||||
offset: integer(params.get('offset'), 0, 0, 1_000_000_000)
|
||||
};
|
||||
if (params.get('excludeProvisioning') === 'true') query.excludeProvisioning = true;
|
||||
if (params.get('excludeMaintenance') === 'true') query.excludeMaintenance = true;
|
||||
for (const key of ['server', 'host', 'q'] as const) {
|
||||
const value = params.get(key)?.trim().slice(0, key === 'q' ? 200 : 255);
|
||||
if (value) query[key] = value;
|
||||
|
||||
Reference in New Issue
Block a user