fix save button enable for acl/serving_endpoint (#239)
This commit is contained in:
@@ -38,8 +38,10 @@ function checkSaveable(formValues: any, currentValues: any) {
|
|||||||
accessKey !== currentValues.accessKey ||
|
accessKey !== currentValues.accessKey ||
|
||||||
secret !== currentValues.secret ||
|
secret !== currentValues.secret ||
|
||||||
region !== currentValues.region ||
|
region !== currentValues.region ||
|
||||||
(!!currentValues.servingEndpoint && servingEndpoint !== currentValues.servingEndpoint) ||
|
(!currentValues.servingEndpoint && (servingEndpoint !=='')) ||
|
||||||
(!!currentValues.acl && acl !== currentValues.acl)
|
(!!currentValues.servingEndpoint && (servingEndpoint !== currentValues.servingEndpoint)) ||
|
||||||
|
(!currentValues.acl && (acl !== '')) ||
|
||||||
|
(!!currentValues.acl && (acl !== currentValues.acl))
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user