Skip to content

Commit 879d8a6

Browse files
committed
Disable save button if not synced or not connected to an endpoint
1 parent f498e31 commit 879d8a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/StructureEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ watch(() => globalStore.userSettings.data, () => {
591591
v-if="structure"
592592
v-bind="props"
593593
:loading="structureStates.saving"
594-
:disabled="!canSaveStructure || (!modelStore.structure.server_url && !isFolderSynced(modelStore.structure)) || structureStates.saving || structureStates.saved"
594+
:disabled="!canSaveStructure || ((!modelStore.structure.server_url || !globalStore.session.loggedIn) && !isFolderSynced(modelStore.structure)) || structureStates.saving || structureStates.saved"
595595
:prepend-icon="!structureStates.saved ? 'mdi-content-save' : 'mdi-check'"
596596
variant="outlined"
597597
color="primary"

0 commit comments

Comments
 (0)