Skip to content

Commit

Permalink
show save button when first time opening credetionals
Browse files Browse the repository at this point in the history
  • Loading branch information
ShireenMissi committed Nov 1, 2024
1 parent b137e13 commit f527929
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
});
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f527929

Please sign in to comment.