Added support for tag mode on short URLs list

This commit is contained in:
Alejandro Celaya
2022-01-31 10:15:25 +01:00
parent 1011b062ae
commit 2de0276195
7 changed files with 67 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ import { isEmpty, pipe } from 'ramda';
import { parseQuery, stringifyQuery } from '../../utils/helpers/query';
import { ShortUrlsOrder, ShortUrlsOrderableFields } from '../data';
import { orderToString, stringToOrder } from '../../utils/helpers/ordering';
import { TagsFilteringMode } from '../../api/types';
type ServerIdRouteProps = RouteChildrenProps<{ serverId: string }>;
type ToFirstPage = (extra: Partial<ShortUrlsFiltering>) => void;
@@ -18,6 +19,7 @@ interface ShortUrlsQueryCommon {
search?: string;
startDate?: string;
endDate?: string;
tagsMode?: TagsFilteringMode;
}
interface ShortUrlsQuery extends ShortUrlsQueryCommon {