Web: Files: Fixed VDR creation, fixed translations

This commit is contained in:
Nikita Gopienko 2023-12-05 18:41:59 +03:00
parent ec75beee04
commit df56be32e6
4 changed files with 14 additions and 1 deletions

View File

@ -52,5 +52,7 @@ export const getRoomTypeDefaultTagTranslation = (roomType = 1, t) => {
return t("Files:CustomRooms");
case RoomsType.PublicRoom:
return t("Files:PublicRoom");
case RoomsType.VirtualDataRoom:
return t("Files:VirtualDataRoom");
}
};

View File

@ -60,6 +60,9 @@ export const getDefaultRoomName = (room, t) => {
case RoomsType.PublicRoom:
return t("Files:PublicRoom");
case RoomsType.VirtualDataRoom:
return t("Files:VirtualDataRoom");
}
};

View File

@ -1234,6 +1234,13 @@ const SectionFilterContent = ({
group: FilterGroups.roomFilterType,
label: t("PublicRoom"),
};
case RoomsType.VirtualDataRoom:
return {
id: "filter_type-virtual-data",
key: RoomsType.VirtualDataRoom,
group: FilterGroups.roomFilterType,
label: t("VirtualDataRoom"),
};
case RoomsType.CustomRoom:
default:
return {

View File

@ -139,7 +139,7 @@ export const RoomsType = Object.freeze({
// ReviewRoom: 3, //TODO: Restore when certs will be done
// ReadOnlyRoom: 4, //TODO: Restore when certs will be done
PublicRoom: 6,
VirtualDataRoom: 7,
VirtualDataRoom: 8,
CustomRoom: 5,
});
@ -156,6 +156,7 @@ export const RoomsTypeTranslations = Object.freeze({
4: "Files:ViewOnlyRooms",
5: "Files:CustomRooms",
6: "Files:PublicRoom",
8: "Files:VirtualDataRoom",
});
/**
* Enum for room provider type.