Skip to content

Commit

Permalink
fix(editor): Load only personal credentials when setting up a template
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Jan 24, 2025
1 parent 5b760e7 commit 01459f1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ const i18n = useI18n();
const wasModalOpenedFromHere = ref(false);
const availableCredentials = computed(() => {
return credentialsStore.getCredentialsByType(props.credentialType);
const credByType = credentialsStore.getCredentialsByType(props.credentialType);
// Only show personal credentials since templates are created in personal by default
// Here, we don't care about sharing because credentials cannot be shared with personal project
return credByType.filter((credential) => credential.homeProject?.type === 'personal');
});
const credentialOptions = computed(() => {
Expand Down

0 comments on commit 01459f1

Please sign in to comment.