mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +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
|
||||
this.$shareRootCheck.toggle(redirectBareDomain);
|
||||
if (redirectBareDomain) {
|
||||
this.checkShareRoot();
|
||||
}
|
||||
});
|
||||
|
||||
this.$showLoginInShareTheme.on('change', async () => {
|
||||
@@ -100,9 +97,6 @@ export default class ShareSettingsOptions extends OptionsWidget {
|
||||
const redirectBareDomain = options.redirectBareDomain === "true";
|
||||
this.$redirectBareDomain.prop("checked", redirectBareDomain);
|
||||
this.$shareRootCheck.toggle(redirectBareDomain);
|
||||
if (redirectBareDomain) {
|
||||
await this.checkShareRoot();
|
||||
}
|
||||
|
||||
this.$showLoginInShareTheme.prop("checked", options.showLoginInShareTheme === "true");
|
||||
this.$useCleanUrls.prop("checked", options.useCleanUrls === "true");
|
||||
|
||||
Reference in New Issue
Block a user