|
|
@@ -21,6 +21,8 @@ export const UserGroupForm: FC<Props> = (props: Props) => {
|
|
|
const {
|
|
|
userGroup, parentUserGroup, selectableParentUserGroups, submitButtonLabel, onSubmit, isExternalGroup = false,
|
|
|
} = props;
|
|
|
+
|
|
|
+ console.log('selectableParentUserGroups', selectableParentUserGroups);
|
|
|
/*
|
|
|
* State
|
|
|
*/
|
|
|
@@ -50,6 +52,8 @@ export const UserGroupForm: FC<Props> = (props: Props) => {
|
|
|
|
|
|
const isSelectableParentUserGroups = selectableParentUserGroups != null && selectableParentUserGroups.length > 0;
|
|
|
|
|
|
+ console.log('isSelectableParentUserGroups', isSelectableParentUserGroups);
|
|
|
+
|
|
|
const isChildUserGroup = parentUserGroup !== undefined;
|
|
|
const messageAtReleaseParentGroup = isChildUserGroup ? t('user_group_management.release_parent_group') : t('user_group_management.select_parent_group');
|
|
|
|
|
|
@@ -116,7 +120,7 @@ export const UserGroupForm: FC<Props> = (props: Props) => {
|
|
|
<button
|
|
|
type="button"
|
|
|
id="dropdownMenuButton"
|
|
|
- data-toggle="dropdown"
|
|
|
+ data-bs-toggle="dropdown"
|
|
|
className="btn btn-outline-secondary dropdown-toggle mb-3"
|
|
|
disabled={isExternalGroup || !isSelectableParentUserGroups}
|
|
|
>
|