Web:Client:EmptyContainer: fix empty screen for archived room

This commit is contained in:
TimofeyBoyko 2022-11-18 14:34:43 +03:00
parent 5e05093a89
commit 0e822663ae
2 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,7 @@
"AllFiles": "All files",
"Archives": "Archives",
"ArchiveEmptyScreen": "You can archive rooms you dont use and restore them in your DocSpace at any moment or delete them permanently. These rooms will appear here.",
"ArchiveEmptyScreenUser": "Rooms that have been archived will appear here.",
"ArchiveEmptyScreenHeader": "No archived rooms here yet",
"BackToParentFolderButton": "Back to parent folder",
"ByAuthor": "Author",

View File

@ -63,7 +63,9 @@ const RootFolderContainer = (props) => {
const roomsDescription = isVisitor
? t("RoomEmptyContainerDescriptionUser")
: t("RoomEmptyContainerDescription");
const archiveRoomsDescription = t("ArchiveEmptyScreen");
const archiveRoomsDescription = isVisitor
? t("ArchiveEmptyScreenUser")
: t("ArchiveEmptyScreen");
const privateRoomHeader = t("PrivateRoomHeader");
const privacyIcon = <img alt="" src="images/privacy.svg" />;
@ -289,7 +291,7 @@ const RootFolderContainer = (props) => {
</div>
);
const archiveButtons = (
const archiveButtons = !isVisitor && (
<div className="empty-folder_container-links">
<img
className="empty-folder_container-image"