mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
d99a7e9b8a
(cherry picked from commit e1cbc4a78249881de96160739a50c0a399ea4313) Closes #10378 Fixed: Links tooltip closing too quickly (cherry picked from commit 0b9a212f33381d07ff67e2453753aaab64cc8041) Closes #10400 Fixed: Movie links not opening on iOS (cherry picked from commit f20ac9dc348e1f5ded635f12ab925d982b1b8957) Closes #10425
64 lines
1.2 KiB
TypeScript
64 lines
1.2 KiB
TypeScript
import Column from 'Components/Table/Column';
|
|
import { SortDirection } from 'Helpers/Props/sortDirections';
|
|
import { FilterBuilderProp, PropertyFilter } from './AppState';
|
|
|
|
export interface Error {
|
|
responseJSON: {
|
|
message: string;
|
|
};
|
|
}
|
|
|
|
export interface AppSectionDeleteState {
|
|
isDeleting: boolean;
|
|
deleteError: Error;
|
|
}
|
|
|
|
export interface AppSectionSaveState {
|
|
isSaving: boolean;
|
|
saveError: Error;
|
|
}
|
|
|
|
export interface PagedAppSectionState {
|
|
page: number;
|
|
pageSize: number;
|
|
totalPages: number;
|
|
totalRecords?: number;
|
|
}
|
|
export interface TableAppSectionState {
|
|
columns: Column[];
|
|
}
|
|
|
|
export interface AppSectionFilterState<T> {
|
|
selectedFilterKey: string;
|
|
filters: PropertyFilter[];
|
|
filterBuilderProps: FilterBuilderProp<T>[];
|
|
}
|
|
|
|
export interface AppSectionSchemaState<T> {
|
|
isSchemaFetching: boolean;
|
|
isSchemaPopulated: boolean;
|
|
schemaError: Error;
|
|
schema: {
|
|
items: T[];
|
|
};
|
|
}
|
|
|
|
export interface AppSectionItemState<T> {
|
|
isFetching: boolean;
|
|
isPopulated: boolean;
|
|
error: Error;
|
|
pendingChanges: Partial<T>;
|
|
item: T;
|
|
}
|
|
|
|
interface AppSectionState<T> {
|
|
isFetching: boolean;
|
|
isPopulated: boolean;
|
|
error: Error;
|
|
items: T[];
|
|
sortKey: string;
|
|
sortDirection: SortDirection;
|
|
}
|
|
|
|
export default AppSectionState;
|