mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	#98, new option "initialized" which indicates if setup has been finished
This commit is contained in:
		| @@ -29,7 +29,7 @@ async function initSyncedOptions(username, password) { | ||||
|     await passwordEncryptionService.setDataKey(password, utils.randomSecureToken(16)); | ||||
| } | ||||
|  | ||||
| async function initNotSyncedOptions(startNotePath = '', syncServerHost = '') { | ||||
| async function initNotSyncedOptions(initialized, startNotePath = '', syncServerHost = '') { | ||||
|     await optionService.createOption('startNotePath', startNotePath, false); | ||||
|     await optionService.createOption('lastBackupDate', dateUtils.nowDate(), false); | ||||
|     await optionService.createOption('dbVersion', appInfo.dbVersion, false); | ||||
| @@ -43,6 +43,8 @@ async function initNotSyncedOptions(startNotePath = '', syncServerHost = '') { | ||||
|     await optionService.createOption('syncServerHost', syncServerHost, false); | ||||
|     await optionService.createOption('syncServerTimeout', 5000, false); | ||||
|     await optionService.createOption('syncProxy', '', false); | ||||
|  | ||||
|     await optionService.createOption('initialized', initialized ? 'true' : 'false', false); | ||||
| } | ||||
|  | ||||
| module.exports = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user