@@ -6,9 +6,10 @@ import { LOGGER } from "services/Logger";
66import { developer_settings_section } from "settings/DeveloperSection" ;
77import { columns_settings_section } from "settings/ColumnsSection" ;
88import { folder_settings_section } from "settings/FolderSection" ;
9- import { DEFAULT_COLUMN_CONFIG , StyleClasses } from "helpers/Constants" ;
9+ import { DEFAULT_COLUMN_CONFIG , SourceDataTypes , StyleClasses } from "helpers/Constants" ;
1010import { SettingHandlerResponse } from "settings/handlers/AbstractSettingHandler" ;
1111import { media_settings_section } from "settings/MediaSection" ;
12+ import { source_settings_section } from "settings/SourceSection" ;
1213
1314export interface MediaSettings {
1415 enable_media_view : boolean ;
@@ -30,6 +31,8 @@ export interface LocalSettings {
3031 show_metadata_created : boolean ;
3132 show_metadata_modified : boolean ;
3233 show_metadata_tasks : boolean ;
34+ source_data : string ;
35+ source_form_result : string ;
3336}
3437
3538export interface DatabaseSettings {
@@ -53,7 +56,9 @@ export const DEFAULT_SETTINGS: DatabaseSettings = {
5356 group_folder_column : '' ,
5457 show_metadata_created : false ,
5558 show_metadata_modified : false ,
56- show_metadata_tasks : false
59+ show_metadata_tasks : false ,
60+ source_data : SourceDataTypes . CURRENT_FOLDER ,
61+ source_form_result : 'root'
5762 }
5863} ;
5964
@@ -118,6 +123,8 @@ export class SettingsManager {
118123
119124 constructSettingBody ( settingHandlerResponse : SettingHandlerResponse ) {
120125 if ( settingHandlerResponse . local ) {
126+ /** Source section */
127+ source_settings_section ( settingHandlerResponse ) ;
121128 /** Folder section */
122129 folder_settings_section ( settingHandlerResponse ) ;
123130 }
0 commit comments