Skip to content

Commit

Permalink
fix(Options): Allow turning auto-sync back on
Browse files Browse the repository at this point in the history
fixes #1438

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Dec 6, 2023
1 parent 079bc4f commit 65b5d05
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/ui/components/OptionsGoogleDrive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@
{{ t('LabelOptionsSyncBehavior') }}
</v-card-title>
<v-card-text>
<v-switch
v-if="!isBrowser"
:value="enabled"
:aria-label="t('LabelAutosync')"
:label="t('LabelAutosync')"
dense
class="mt-0 pt-0"
@input="$emit('update:enabled', $event)" />
<OptionSyncInterval
:value="syncInterval"
@input="$emit('update:syncInterval', $event)" />
Expand Down Expand Up @@ -130,7 +138,7 @@ import OptionExportBookmarks from './OptionExportBookmarks.vue'
export default {
name: 'OptionsGoogleDrive',
components: { OptionExportBookmarks, OptionPassphrase, OptionAllowNetwork, OptionDownloadLogs, OptionFailsafe, OptionSyncFolder, OptionDeleteAccount, OptionSyncStrategy, OptionResetCache, OptionSyncInterval, OptionNestedSync },
props: ['username', 'password', 'refreshToken', 'localRoot', 'allowNetwork', 'syncInterval', 'strategy', 'bookmark_file', 'nestedSync', 'failsafe'],
props: ['username', 'password', 'refreshToken', 'localRoot', 'allowNetwork', 'syncInterval', 'strategy', 'bookmark_file', 'nestedSync', 'failsafe', 'enabled'],
data() {
return {
panels: [0, 1],
Expand Down
10 changes: 9 additions & 1 deletion src/ui/components/OptionsNextcloudBookmarks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
{{ t('LabelOptionsSyncBehavior') }}
</v-card-title>
<v-card-text>
<v-switch
v-if="!isBrowser"
:value="enabled"
:aria-label="t('LabelAutosync')"
:label="t('LabelAutosync')"
dense
class="mt-0 pt-0"
@input="$emit('update:enabled', $event)" />
<OptionSyncInterval
:value="syncInterval"
@input="$emit('update:syncInterval', $event)" />
Expand Down Expand Up @@ -131,7 +139,7 @@ import OptionExportBookmarks from './OptionExportBookmarks.vue'
export default {
name: 'OptionsNextcloudBookmarks',
components: { OptionExportBookmarks, OptionAllowNetwork, OptionDownloadLogs, OptionAllowRedirects, OptionClientCert, OptionFailsafe, OptionNestedSync, NextcloudLogin, OptionSyncFolder, OptionDeleteAccount, OptionSyncStrategy, OptionResetCache, OptionSyncInterval },
props: ['url', 'username', 'password', 'includeCredentials', 'serverRoot', 'localRoot', 'allowNetwork', 'syncInterval', 'strategy', 'nestedSync', 'failsafe', 'allowRedirects'],
props: ['url', 'username', 'password', 'includeCredentials', 'serverRoot', 'localRoot', 'allowNetwork', 'syncInterval', 'strategy', 'nestedSync', 'failsafe', 'allowRedirects', 'enabled'],
data() {
return {
panels: [0, 1]
Expand Down
10 changes: 9 additions & 1 deletion src/ui/components/OptionsWebdav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@
{{ t('LabelOptionsSyncBehavior') }}
</v-card-title>
<v-card-text>
<v-switch
v-if="!isBrowser"
:value="enabled"
:aria-label="t('LabelAutosync')"
:label="t('LabelAutosync')"
dense
class="mt-0 pt-0"
@input="$emit('update:enabled', $event)" />
<OptionSyncInterval
:value="syncInterval"
@input="$emit('update:syncInterval', $event)" />
Expand Down Expand Up @@ -140,7 +148,7 @@ import OptionExportBookmarks from './OptionExportBookmarks.vue'
export default {
name: 'OptionsWebdav',
components: { OptionExportBookmarks, OptionAllowNetwork, OptionDownloadLogs, OptionAllowRedirects, OptionClientCert, OptionFailsafe, OptionSyncFolder, OptionDeleteAccount, OptionSyncStrategy, OptionResetCache, OptionSyncInterval, OptionNestedSync, OptionFileType },
props: ['url', 'username', 'password','passphrase', 'includeCredentials', 'serverRoot', 'localRoot', 'allowNetwork', 'syncInterval', 'strategy', 'bookmark_file', 'nestedSync', 'failsafe', 'allowRedirects', 'bookmark_file_type'],
props: ['url', 'username', 'password','passphrase', 'includeCredentials', 'serverRoot', 'localRoot', 'allowNetwork', 'syncInterval', 'strategy', 'bookmark_file', 'nestedSync', 'failsafe', 'allowRedirects', 'bookmark_file_type', 'enabled'],
data() {
return {
panels: [0, 1],
Expand Down

0 comments on commit 65b5d05

Please sign in to comment.