mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-27 08:16:40 +01:00 
			
		
		
		
	fix(share_settings): stop runnning checkShareRoot on init and on redirectBareDomain change
→ that is what the shareRootCheck button is there for
This commit is contained in:
		| @@ -68,9 +68,6 @@ export default class ShareSettingsOptions extends OptionsWidget { | |||||||
|  |  | ||||||
|             // Show/hide share root status section based on redirectBareDomain checkbox |             // Show/hide share root status section based on redirectBareDomain checkbox | ||||||
|             this.$shareRootCheck.toggle(redirectBareDomain); |             this.$shareRootCheck.toggle(redirectBareDomain); | ||||||
|             if (redirectBareDomain) { |  | ||||||
|                 this.checkShareRoot(); |  | ||||||
|             } |  | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|         this.$showLoginInShareTheme.on('change', async () => { |         this.$showLoginInShareTheme.on('change', async () => { | ||||||
| @@ -100,9 +97,6 @@ export default class ShareSettingsOptions extends OptionsWidget { | |||||||
|         const redirectBareDomain = options.redirectBareDomain === "true"; |         const redirectBareDomain = options.redirectBareDomain === "true"; | ||||||
|         this.$redirectBareDomain.prop("checked", redirectBareDomain); |         this.$redirectBareDomain.prop("checked", redirectBareDomain); | ||||||
|         this.$shareRootCheck.toggle(redirectBareDomain); |         this.$shareRootCheck.toggle(redirectBareDomain); | ||||||
|         if (redirectBareDomain) { |  | ||||||
|             await this.checkShareRoot(); |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|         this.$showLoginInShareTheme.prop("checked", options.showLoginInShareTheme === "true"); |         this.$showLoginInShareTheme.prop("checked", options.showLoginInShareTheme === "true"); | ||||||
|         this.$useCleanUrls.prop("checked", options.useCleanUrls === "true"); |         this.$useCleanUrls.prop("checked", options.useCleanUrls === "true"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user