unselectAll syntax
This commit is contained in:
parent
1cb2560f96
commit
3b48979bc0
@ -65,7 +65,7 @@ export const RoomDirectoryBulkSaveButton = () => {
|
|||||||
const { selectedIds } = useListContext();
|
const { selectedIds } = useListContext();
|
||||||
const notify = useNotify();
|
const notify = useNotify();
|
||||||
const refresh = useRefresh();
|
const refresh = useRefresh();
|
||||||
const unselectAll = useUnselectAll();
|
const unselectAll = useUnselectAll("rooms");
|
||||||
const { createMany, isloading } = useMutation();
|
const { createMany, isloading } = useMutation();
|
||||||
|
|
||||||
const handleSend = values => {
|
const handleSend = values => {
|
||||||
@ -74,7 +74,7 @@ export const RoomDirectoryBulkSaveButton = () => {
|
|||||||
{
|
{
|
||||||
onSuccess: data => {
|
onSuccess: data => {
|
||||||
notify("resources.room_directory.action.send_success");
|
notify("resources.room_directory.action.send_success");
|
||||||
unselectAll("rooms");
|
unselectAll();
|
||||||
refresh();
|
refresh();
|
||||||
},
|
},
|
||||||
onError: error =>
|
onError: error =>
|
||||||
|
@ -114,7 +114,7 @@ export const ServerNoticeBulkButton = () => {
|
|||||||
const { selectedIds } = useListContext();
|
const { selectedIds } = useListContext();
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
const notify = useNotify();
|
const notify = useNotify();
|
||||||
const unselectAll = useUnselectAll();
|
const unselectAll = useUnselectAll("users");
|
||||||
const { createMany, isloading } = useMutation();
|
const { createMany, isloading } = useMutation();
|
||||||
|
|
||||||
const handleDialogOpen = () => setOpen(true);
|
const handleDialogOpen = () => setOpen(true);
|
||||||
@ -126,7 +126,7 @@ export const ServerNoticeBulkButton = () => {
|
|||||||
{
|
{
|
||||||
onSuccess: data => {
|
onSuccess: data => {
|
||||||
notify("resources.servernotices.action.send_success");
|
notify("resources.servernotices.action.send_success");
|
||||||
unselectAll("users");
|
unselectAll();
|
||||||
handleDialogClose();
|
handleDialogClose();
|
||||||
},
|
},
|
||||||
onError: error =>
|
onError: error =>
|
||||||
|
Loading…
Reference in New Issue
Block a user