mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
repair settings naming bug (#4510)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Modal, ModalBody } from 'reactstrap';
|
||||
import { gettext, lang, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle, seafileVersion, extraAboutDialogLinks } from '../../utils/constants';
|
||||
import { gettext, lang, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle, seafileVersion, additionalAboutDialogLinks } from '../../utils/constants';
|
||||
|
||||
const propTypes = {
|
||||
onCloseAboutDialog: PropTypes.func.isRequired,
|
||||
@@ -14,10 +14,10 @@ class AboutDialog extends React.Component {
|
||||
}
|
||||
|
||||
renderExternalAboutLinks = () => {
|
||||
if (extraAboutDialogLinks && (typeof extraAboutDialogLinks) === 'object') {
|
||||
let keys = Object.keys(extraAboutDialogLinks);
|
||||
if (additionalAboutDialogLinks && (typeof additionalAboutDialogLinks) === 'object') {
|
||||
let keys = Object.keys(additionalAboutDialogLinks);
|
||||
return keys.map((key, index) => {
|
||||
return <a key={index} className="d-block" href={extraAboutDialogLinks[key]}>{key}</a>;
|
||||
return <a key={index} className="d-block" href={additionalAboutDialogLinks[key]}>{key}</a>;
|
||||
});
|
||||
}
|
||||
return null;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import React, { Fragment } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Modal, ModalHeader, ModalBody, TabContent, TabPane, Nav, NavItem, NavLink } from 'reactstrap';
|
||||
import { gettext, username, canGenerateShareLink, canGenerateUploadLink, extraShareDialogNote } from '../../utils/constants';
|
||||
import { gettext, username, canGenerateShareLink, canGenerateUploadLink, additionalShareDialogNote } from '../../utils/constants';
|
||||
import ShareToUser from './share-to-user';
|
||||
import ShareToGroup from './share-to-group';
|
||||
import GenerateShareLink from './generate-share-link';
|
||||
@@ -208,11 +208,11 @@ class ShareDialog extends React.Component {
|
||||
}
|
||||
|
||||
renderExternalShareMessage = () => {
|
||||
if (extraShareDialogNote && (typeof extraShareDialogNote) === 'object') {
|
||||
if (additionalShareDialogNote && (typeof additionalShareDialogNote) === 'object') {
|
||||
return (
|
||||
<div className="external-share-message mt-2">
|
||||
<h6>{extraShareDialogNote.title}</h6>
|
||||
<div style={{fontSize: '14px', color: '#666'}}>{extraShareDialogNote.content}</div>
|
||||
<h6>{additionalShareDialogNote.title}</h6>
|
||||
<div style={{fontSize: '14px', color: '#666'}}>{additionalShareDialogNote.content}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user