[DE mobile] Fix document info settings
This commit is contained in:
parent
0d525a900f
commit
12a96c706c
|
@ -36,13 +36,13 @@ class DocumentInfoController extends Component {
|
|||
console.log(docProps);
|
||||
if (valueModified) {
|
||||
return (
|
||||
valueModified.toLocaleString(_lang, {
|
||||
valueModified.toLocaleString('en', {
|
||||
year: "numeric",
|
||||
month: "2-digit",
|
||||
day: "2-digit",
|
||||
}) +
|
||||
" " +
|
||||
valueModified.toLocaleTimeString(_lang, { timeStyle: "short" })
|
||||
valueModified.toLocaleTimeString('en', { timeStyle: "short" })
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -53,8 +53,7 @@ class DocumentInfoController extends Component {
|
|||
if (docProps) {
|
||||
let valueModifiedBy = docProps.asc_getLastModifiedBy();
|
||||
if (valueModifiedBy) {
|
||||
// return Common.Utils.UserInfoParser.getParsedName(valueModifiedBy);
|
||||
return valueModifiedBy;
|
||||
return Common.Utils.UserInfoParser.getParsedName(valueModifiedBy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React from "react";
|
||||
import React, {Fragment} from "react";
|
||||
import { observer, inject } from "mobx-react";
|
||||
import { Page, Navbar, List, ListItem, BlockTitle } from "framework7-react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
@ -52,7 +52,7 @@ const PageDocumentInfo = (props) => {
|
|||
<ListItem title="Spaces" after={symbolsWSCount}></ListItem>
|
||||
</List>
|
||||
{dataModified && dataModifiedBy ? (
|
||||
<Block>
|
||||
<Fragment>
|
||||
<BlockTitle>{_t.textLastModified}</BlockTitle>
|
||||
<List>
|
||||
<ListItem title="11/19/2020 1:13 PM"></ListItem>
|
||||
|
@ -61,15 +61,15 @@ const PageDocumentInfo = (props) => {
|
|||
<List>
|
||||
<ListItem title="John Smith"></ListItem>
|
||||
</List>
|
||||
</Block>
|
||||
</Fragment>
|
||||
) : null}
|
||||
{dataApp ? (
|
||||
<Block>
|
||||
<Fragment>
|
||||
<BlockTitle>{_t.textApplication}</BlockTitle>
|
||||
<List>
|
||||
<ListItem title="ONLYOFFICE/6.0.2.5"></ListItem>
|
||||
</List>
|
||||
</Block>
|
||||
</Fragment>
|
||||
) : null}
|
||||
</Page>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue