Disable add button when nothing selected (#3244)

This commit is contained in:
Erik Jan de Wit 2022-08-31 12:28:40 +02:00 committed by GitHub
parent ea24e3b91d
commit 0622fe5480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,6 +150,7 @@ export const AddScopeDialog = ({
onAdd(scopes);
toggleDialog();
}}
isDisabled={rows.length === 0}
>
{t("common:add")}
</Button>,