mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-30 18:13:23 +08:00
Fix credential validation logic in ToolForm component
Updated the hasCredentialsErrors computed property to include a check for toolHasRequiredServiceCredentials. This ensures that the validation correctly reflects whether all required service for a required credentials are provided by the user.
This commit is contained in:
@@ -276,10 +276,11 @@ export default {
|
||||
},
|
||||
hasCredentialsErrors() {
|
||||
if (this.formConfig.credentials?.length) {
|
||||
const { hasUserProvidedAllRequiredServiceCredentials } = useUserToolCredentials(
|
||||
this.formConfig.id,
|
||||
this.formConfig.version,
|
||||
);
|
||||
const { hasUserProvidedAllRequiredServiceCredentials, toolHasRequiredServiceCredentials } =
|
||||
useUserToolCredentials(this.formConfig.id, this.formConfig.version);
|
||||
if (!toolHasRequiredServiceCredentials.value) {
|
||||
return false;
|
||||
}
|
||||
return !hasUserProvidedAllRequiredServiceCredentials.value;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user