show save button when first time opening credetionals

This commit is contained in:
Shireen Missi 2024-10-31 17:44:08 +00:00
parent b137e13845
commit f52792921f
No known key found for this signature in database
GPG key ID: D213F10998FACC51

View file

@ -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