Changed to be disabled when not enabled (#2323)
This commit is contained in:
parent
6aab45dca7
commit
d2bac33d37
1 changed files with 2 additions and 6 deletions
|
@ -154,12 +154,8 @@ export const RequiredActions = () => {
|
|||
<Switch
|
||||
id={`default-${row.name}`}
|
||||
label={t("common:on")}
|
||||
isDisabled={!!isUnregisteredAction(row.data)}
|
||||
labelOff={
|
||||
isUnregisteredAction(row.data)
|
||||
? t("disabledOff")
|
||||
: t("common:off")
|
||||
}
|
||||
isDisabled={!row.enabled}
|
||||
labelOff={!row.enabled ? t("disabledOff") : t("common:off")}
|
||||
isChecked={row.defaultAction}
|
||||
onChange={() => {
|
||||
updateAction(row.data, "defaultAction");
|
||||
|
|
Loading…
Reference in a new issue