Update DocumentInfo.jsx
This commit is contained in:
parent
345a86150b
commit
d655e79be8
|
@ -32,12 +32,9 @@ class DocumentInfoController extends Component {
|
||||||
value = props.asc_getLastModifiedBy();
|
value = props.asc_getLastModifiedBy();
|
||||||
if(value) this.docInfoObject.modifyBy = AscCommon.UserInfoParser.getParsedName(value);
|
if(value) this.docInfoObject.modifyBy = AscCommon.UserInfoParser.getParsedName(value);
|
||||||
|
|
||||||
value = props.asc_getTitle();
|
this.docInfoObject.title = props.asc_getTitle() || '';
|
||||||
this.docInfoObject.title = value || '';
|
this.docInfoObject.subject = props.asc_getSubject() || '';
|
||||||
value = props.asc_getSubject();
|
this.docInfoObject.description = props.asc_getDescription() || '';
|
||||||
this.docInfoObject.subject = value || '';
|
|
||||||
value = props.asc_getDescription();
|
|
||||||
this.docInfoObject.description = value || '';
|
|
||||||
|
|
||||||
value = props.asc_getCreator();
|
value = props.asc_getCreator();
|
||||||
if(value) this.docInfoObject.creators = value;
|
if(value) this.docInfoObject.creators = value;
|
||||||
|
@ -117,11 +114,11 @@ class DocumentInfoController extends Component {
|
||||||
let appName;
|
let appName;
|
||||||
|
|
||||||
if (appProps) {
|
if (appProps) {
|
||||||
appName =
|
appName = appProps.asc_getApplication();
|
||||||
(appProps.asc_getApplication() || "") +
|
if ( appName && appProps.asc_getAppVersion() )
|
||||||
(appProps.asc_getAppVersion() ? " " : "") +
|
appName += ` ${appProps.asc_getAppVersion()}`;
|
||||||
(appProps.asc_getAppVersion() || "");
|
|
||||||
return appName;
|
return appName || '';
|
||||||
} else if (this.pdfProps) {
|
} else if (this.pdfProps) {
|
||||||
appName = this.pdfProps ? this.pdfProps.Producer || '' : '';
|
appName = this.pdfProps ? this.pdfProps.Producer || '' : '';
|
||||||
return appName;
|
return appName;
|
||||||
|
@ -160,4 +157,4 @@ class DocumentInfoController extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default inject("storeAppOptions")(observer(withTranslation()(DocumentInfoController)));
|
export default inject("storeAppOptions")(observer(withTranslation()(DocumentInfoController)));
|
||||||
|
|
Loading…
Reference in a new issue