mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
show save button when first time opening credetionals
This commit is contained in:
parent
b137e13845
commit
f52792921f
|
@ -318,7 +318,7 @@ const defaultCredentialTypeName = computed(() => {
|
|||
|
||||
const showSaveButton = computed(() => {
|
||||
return (
|
||||
(hasUnsavedChanges.value || !!credentialId.value) &&
|
||||
(hasUnsavedChanges.value || !credentialId.value) &&
|
||||
(credentialPermissions.value.create || credentialPermissions.value.update)
|
||||
);
|
||||
});
|
||||
|
@ -1064,7 +1064,7 @@ function resetCredentialData(): void {
|
|||
/>
|
||||
<SaveButton
|
||||
v-if="showSaveButton"
|
||||
:saved="!hasUnsavedChanges && !isTesting"
|
||||
:saved="!hasUnsavedChanges && !isTesting && !!credentialId"
|
||||
:is-saving="isSaving || isTesting"
|
||||
:saving-label="
|
||||
isTesting
|
||||
|
|
Loading…
Reference in a new issue