[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);
|
console.log(docProps);
|
||||||
if (valueModified) {
|
if (valueModified) {
|
||||||
return (
|
return (
|
||||||
valueModified.toLocaleString(_lang, {
|
valueModified.toLocaleString('en', {
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
month: "2-digit",
|
month: "2-digit",
|
||||||
day: "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) {
|
if (docProps) {
|
||||||
let valueModifiedBy = docProps.asc_getLastModifiedBy();
|
let valueModifiedBy = docProps.asc_getLastModifiedBy();
|
||||||
if (valueModifiedBy) {
|
if (valueModifiedBy) {
|
||||||
// return Common.Utils.UserInfoParser.getParsedName(valueModifiedBy);
|
return Common.Utils.UserInfoParser.getParsedName(valueModifiedBy);
|
||||||
return valueModifiedBy;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import React from "react";
|
import React, {Fragment} from "react";
|
||||||
import { observer, inject } from "mobx-react";
|
import { observer, inject } from "mobx-react";
|
||||||
import { Page, Navbar, List, ListItem, BlockTitle } from "framework7-react";
|
import { Page, Navbar, List, ListItem, BlockTitle } from "framework7-react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
@ -52,7 +52,7 @@ const PageDocumentInfo = (props) => {
|
||||||
<ListItem title="Spaces" after={symbolsWSCount}></ListItem>
|
<ListItem title="Spaces" after={symbolsWSCount}></ListItem>
|
||||||
</List>
|
</List>
|
||||||
{dataModified && dataModifiedBy ? (
|
{dataModified && dataModifiedBy ? (
|
||||||
<Block>
|
<Fragment>
|
||||||
<BlockTitle>{_t.textLastModified}</BlockTitle>
|
<BlockTitle>{_t.textLastModified}</BlockTitle>
|
||||||
<List>
|
<List>
|
||||||
<ListItem title="11/19/2020 1:13 PM"></ListItem>
|
<ListItem title="11/19/2020 1:13 PM"></ListItem>
|
||||||
|
@ -61,15 +61,15 @@ const PageDocumentInfo = (props) => {
|
||||||
<List>
|
<List>
|
||||||
<ListItem title="John Smith"></ListItem>
|
<ListItem title="John Smith"></ListItem>
|
||||||
</List>
|
</List>
|
||||||
</Block>
|
</Fragment>
|
||||||
) : null}
|
) : null}
|
||||||
{dataApp ? (
|
{dataApp ? (
|
||||||
<Block>
|
<Fragment>
|
||||||
<BlockTitle>{_t.textApplication}</BlockTitle>
|
<BlockTitle>{_t.textApplication}</BlockTitle>
|
||||||
<List>
|
<List>
|
||||||
<ListItem title="ONLYOFFICE/6.0.2.5"></ListItem>
|
<ListItem title="ONLYOFFICE/6.0.2.5"></ListItem>
|
||||||
</List>
|
</List>
|
||||||
</Block>
|
</Fragment>
|
||||||
) : null}
|
) : null}
|
||||||
</Page>
|
</Page>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue