mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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(() => {
|
const showSaveButton = computed(() => {
|
||||||
return (
|
return (
|
||||||
(hasUnsavedChanges.value || !!credentialId.value) &&
|
(hasUnsavedChanges.value || !credentialId.value) &&
|
||||||
(credentialPermissions.value.create || credentialPermissions.value.update)
|
(credentialPermissions.value.create || credentialPermissions.value.update)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -1064,7 +1064,7 @@ function resetCredentialData(): void {
|
||||||
/>
|
/>
|
||||||
<SaveButton
|
<SaveButton
|
||||||
v-if="showSaveButton"
|
v-if="showSaveButton"
|
||||||
:saved="!hasUnsavedChanges && !isTesting"
|
:saved="!hasUnsavedChanges && !isTesting && !!credentialId"
|
||||||
:is-saving="isSaving || isTesting"
|
:is-saving="isSaving || isTesting"
|
||||||
:saving-label="
|
:saving-label="
|
||||||
isTesting
|
isTesting
|
||||||
|
|
Loading…
Reference in a new issue