aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/types.ts')
-rw-r--r--apps/files/src/types.ts23
1 files changed, 16 insertions, 7 deletions
diff --git a/apps/files/src/types.ts b/apps/files/src/types.ts
index db3de13d4eb..6757b7f1f45 100644
--- a/apps/files/src/types.ts
+++ b/apps/files/src/types.ts
@@ -50,16 +50,20 @@ export interface PathOptions {
// User config store
export interface UserConfig {
- [key: string]: boolean|undefined
+ [key: string]: boolean | string | undefined
- show_dialog_file_extension: boolean,
- show_hidden: boolean
crop_image_previews: boolean
- sort_favorites_first: boolean
- sort_folders_first: boolean
+ default_view: 'files' | 'personal'
grid_view: boolean
+ show_hidden: boolean
show_mime_column: boolean
+ sort_favorites_first: boolean
+ sort_folders_first: boolean
+
+ show_dialog_deletion: boolean
+ show_dialog_file_extension: boolean,
}
+
export interface UserConfigStore {
userConfig: UserConfig
}
@@ -105,12 +109,17 @@ export interface DragAndDropStore {
// Active node store
export interface ActiveStore {
- _initialized: boolean
+ activeAction: FileAction|null
+ activeFolder: Folder|null
activeNode: Node|null
activeView: View|null
- activeAction: FileAction|null
}
+/**
+ * Search scope for the in-files-search
+ */
+export type SearchScope = 'filter'|'globally'
+
export interface TemplateFile {
app: string
label: string