fixed and updated events
This commit is contained in:
parent
d967046456
commit
a7a55f11b9
@ -27,12 +27,12 @@ const CreateRoomEvent = ({
|
|||||||
currrentFolderId,
|
currrentFolderId,
|
||||||
updateCurrentFolder,
|
updateCurrentFolder,
|
||||||
}) => {
|
}) => {
|
||||||
// const { t } = useTranslation([
|
const { t } = useTranslation([
|
||||||
// "CreateEditRoomDialog",
|
"CreateEditRoomDialog",
|
||||||
// "Common",
|
"Common",
|
||||||
// "Files",
|
"Files",
|
||||||
// "ToastHeaders",
|
"ToastHeaders",
|
||||||
// ]);
|
]);
|
||||||
const [fetchedTags, setFetchedTags] = useState([]);
|
const [fetchedTags, setFetchedTags] = useState([]);
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
|
||||||
@ -120,6 +120,7 @@ const CreateRoomEvent = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<CreateRoomDialog
|
<CreateRoomDialog
|
||||||
|
t={t}
|
||||||
visible={visible && !connectDialogVisible}
|
visible={visible && !connectDialogVisible}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
onCreate={onCreate}
|
onCreate={onCreate}
|
||||||
|
@ -33,6 +33,8 @@ const EditRoomEvent = ({
|
|||||||
const startTags = Object.values(item.tags);
|
const startTags = Object.values(item.tags);
|
||||||
const startObjTags = startTags.map((tag, i) => ({ id: i, name: tag }));
|
const startObjTags = startTags.map((tag, i) => ({ id: i, name: tag }));
|
||||||
|
|
||||||
|
// const startuploadedFile =
|
||||||
|
|
||||||
const fetchedRoomParams = {
|
const fetchedRoomParams = {
|
||||||
title: item.title,
|
title: item.title,
|
||||||
type: item.roomType,
|
type: item.roomType,
|
||||||
@ -79,8 +81,10 @@ const EditRoomEvent = ({
|
|||||||
await addTagsToRoom(roomId, tags);
|
await addTagsToRoom(roomId, tags);
|
||||||
await removeTagsFromRoom(roomId, removedTags);
|
await removeTagsFromRoom(roomId, removedTags);
|
||||||
|
|
||||||
if (!roomParams.icon.uploadedFileSrc && !roomParams.icon.uploadedFile)
|
console.log(roomParams.icon.uploadedFile);
|
||||||
await removeLogoFromRoom(roomId);
|
if (!roomParams.icon.uploadedFile) await removeLogoFromRoom(roomId);
|
||||||
|
|
||||||
|
// if ()
|
||||||
if (roomParams.icon.uploadedFile)
|
if (roomParams.icon.uploadedFile)
|
||||||
await uploadRoomLogo(uploadLogoData).then((response) => {
|
await uploadRoomLogo(uploadLogoData).then((response) => {
|
||||||
const url = URL.createObjectURL(roomParams.icon.uploadedFile);
|
const url = URL.createObjectURL(roomParams.icon.uploadedFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user