Web: Files: changed lifetime translation

This commit is contained in:
Nikita Gopienko 2023-11-22 17:30:22 +03:00
parent 02ff6d65f6
commit 7ee7f5bf29
2 changed files with 7 additions and 6 deletions

View File

@ -177,5 +177,6 @@
"WantToRestoreTheRooms": "All shared links in restored rooms will become active, and their contents will be available to everyone with the room links. Do you want to restore the rooms?",
"WithSubfolders": "With subfolders",
"YouLeftTheRoom": "You have left the room",
"RoomFilesLifetime": "The file lifetime is set to {{days}} days in this room"
"RoomFilesLifetime": "The file lifetime is set to {{days}} days in this room",
"FileWillBeDeleted": "The file will be deleted {{date}}"
}

View File

@ -86,18 +86,19 @@ const QuickButtons = (props) => {
!isTile;
//const showLifetimeIcon = item.lifetime < item.lifetime * 0.1
const showLifetimeIcon = true;
const fileDeleteDate = "22.02 12:08 PM"; // TODO:
//TODO:
const getTooltipContent = () => (
<Text fontSize="12px" fontWeight={400} noSelect>
The file will be deleted after 1 day and 2 hours.
{t("Files:FileWillBeDeleted", { date: fileDeleteDate })}.
</Text>
);
return (
<StyledQuickButtons className="badges additional-badges badges__quickButtons">
{/* */}
{isAvailableLockFile && (
{showLifetimeIcon && (
<>
<ColorTheme
themeId={ThemeType.IconButton}
@ -118,7 +119,6 @@ const QuickButtons = (props) => {
/>
</>
)}
{/* */}
{isAvailableLockFile && (
<ColorTheme