Web: VDR-lifetime: added file lifetime block to the info-panel

This commit is contained in:
Nikita Gopienko 2024-06-20 11:35:49 +03:00
parent d032fff28d
commit 03f23b0be3
2 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,7 @@
"CreationDate": "Creation date",
"Data": "Data",
"DateModified": "Date modified",
"LifetimeEnds": "Lifetime ends",
"ExpectUsers": "Expect users",
"FeedCreateFileSeveral": "Files added",
"FeedCreateFileSingle": "File created",

View File

@ -144,6 +144,8 @@ class DetailsHelper {
return "info_details_comments";
case "Tags":
return "info_details_tags";
case "Lifetime ends":
return "info_details_lifetime";
case "Storage":
return "info_details_storage";
}
@ -182,6 +184,7 @@ class DetailsHelper {
"Date modified",
"Last modified by",
"Creation date",
this.item.expired && "Lifetime ends",
"Versions",
"Comments",
]
@ -214,6 +217,8 @@ class DetailsHelper {
return this.t("LastModifiedBy");
case "Creation date":
return this.t("CreationDate");
case "Lifetime ends":
return this.t("LifetimeEnds");
case "Versions":
return this.t("InfoPanel:Versions");
@ -261,6 +266,8 @@ class DetailsHelper {
return this.getAuthorDecoration("updatedBy");
case "Creation date":
return this.getItemCreationDate();
case "Lifetime ends":
return this.getItemExpiredDate();
case "Versions":
return this.getItemVersions();
@ -334,6 +341,10 @@ class DetailsHelper {
return text(parseAndFormatDate(this.item.created, this.culture));
};
getItemExpiredDate = () => {
return text(parseAndFormatDate(this.item.expired, this.culture));
};
getItemVersions = () => {
return text(this.item.version);
};