mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
feat: complete group tree (#1967)
* feat: complete group tree * feat: ui * fix: i18n * refactor code * fix: support remove user from group * fix: format code * Update organization.go * Update organization.go * Update user_group.go --------- Co-authored-by: hsluoyz <hsluoyz@qq.com>
This commit is contained in:
@ -17,6 +17,8 @@ import i18next from "i18next";
|
||||
import React from "react";
|
||||
|
||||
export const PopconfirmModal = (props) => {
|
||||
const text = props.text ? props.text : i18next.t("general:Delete");
|
||||
const size = props.size ? props.size : "middle";
|
||||
return (
|
||||
<Popconfirm
|
||||
title={props.title}
|
||||
@ -25,7 +27,7 @@ export const PopconfirmModal = (props) => {
|
||||
okText={i18next.t("general:OK")}
|
||||
cancelText={i18next.t("general:Cancel")}
|
||||
>
|
||||
<Button style={{marginBottom: "10px"}} disabled={props.disabled} type="primary" danger>{i18next.t("general:Delete")}</Button>
|
||||
<Button style={{...props.style}} size={size} disabled={props.disabled} type="primary" danger>{text}</Button>
|
||||
</Popconfirm>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user