Merge pull request #2066 from ONLYOFFICE/feature/fix-bugs
Feature/fix bugs
This commit is contained in:
commit
3f5fb3deb5
|
@ -6,17 +6,18 @@ import { Device } from "../../utils/device";
|
||||||
|
|
||||||
const SharingSettings = props => {
|
const SharingSettings = props => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const storeAppOptions = props.storeAppOptions;
|
||||||
|
const sharingSettingsUrl = storeAppOptions.sharingSettingsUrl;
|
||||||
const _t = t('Common.Collaboration', {returnObjects: true});
|
const _t = t('Common.Collaboration', {returnObjects: true});
|
||||||
const url = 'https://nct.onlyoffice.com/Products/Files/Share.aspx?fileid=142278';
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<Navbar title={t('Common.Collaboration.textSharingSettings')} backLink={_t.textBack} />
|
<Navbar title={t('Common.Collaboration.textSharingSettings')} backLink={_t.textBack} />
|
||||||
<div id="sharing-placeholder" className="sharing-placeholder">
|
<div id="sharing-placeholder" className="sharing-placeholder">
|
||||||
<iframe width="100%" height="100%" frameBorder={0} scrolling="0" align="top" src={url}></iframe>
|
<iframe width="100%" height="100%" frameBorder={0} scrolling="0" align="top" src={sharingSettingsUrl}></iframe>
|
||||||
</div>
|
</div>
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SharingSettings;
|
export default inject("storeAppOptions")(observer(SharingSettings));
|
|
@ -4,11 +4,10 @@ import { Popover, List, ListItem, Navbar, NavRight, Sheet, BlockTitle, Page, Vie
|
||||||
import { f7 } from 'framework7-react';
|
import { f7 } from 'framework7-react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import {Device} from "../../../utils/device";
|
import {Device} from "../../../utils/device";
|
||||||
|
|
||||||
import {ReviewController, ReviewChangeController} from "../../controller/collaboration/Review";
|
import {ReviewController, ReviewChangeController} from "../../controller/collaboration/Review";
|
||||||
import {PageDisplayMode} from "./Review";
|
import {PageDisplayMode} from "./Review";
|
||||||
|
|
||||||
import {ViewCommentsController, ViewCommentsSheetsController} from "../../controller/collaboration/Comments";
|
import {ViewCommentsController, ViewCommentsSheetsController} from "../../controller/collaboration/Comments";
|
||||||
|
import SharingSettings from "../SharingSettings";
|
||||||
|
|
||||||
const PageUsers = inject("users")(observer(props => {
|
const PageUsers = inject("users")(observer(props => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@ -81,6 +80,10 @@ const routes = [
|
||||||
allComments: true
|
allComments: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/sharing-settings/',
|
||||||
|
component: SharingSettings
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -88,6 +91,7 @@ const PageCollaboration = inject('storeAppOptions', 'users')(observer(props => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const _t = t('Common.Collaboration', {returnObjects: true});
|
const _t = t('Common.Collaboration', {returnObjects: true});
|
||||||
const appOptions = props.storeAppOptions;
|
const appOptions = props.storeAppOptions;
|
||||||
|
const sharingSettingsUrl = appOptions.sharingSettingsUrl;
|
||||||
const isViewer = appOptions.isViewer;
|
const isViewer = appOptions.isViewer;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -103,6 +107,11 @@ const PageCollaboration = inject('storeAppOptions', 'users')(observer(props => {
|
||||||
}
|
}
|
||||||
</Navbar>
|
</Navbar>
|
||||||
<List>
|
<List>
|
||||||
|
{sharingSettingsUrl &&
|
||||||
|
<ListItem title={t('Common.Collaboration.textSharingSettings')} link="/sharing-settings/">
|
||||||
|
<Icon slot="media" icon="icon-sharing-settings"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
}
|
||||||
{props.users.editUsers.length > 0 &&
|
{props.users.editUsers.length > 0 &&
|
||||||
<ListItem link={'/users/'} title={_t.textUsers}>
|
<ListItem link={'/users/'} title={_t.textUsers}>
|
||||||
<Icon slot="media" icon="icon-users"></Icon>
|
<Icon slot="media" icon="icon-users"></Icon>
|
||||||
|
|
|
@ -339,13 +339,6 @@ const EditTabs = props => {
|
||||||
component: <EditHeaderController />
|
component: <EditHeaderController />
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (settings.indexOf('paragraph') > -1) {
|
|
||||||
editors.push({
|
|
||||||
caption: _t.textParagraph,
|
|
||||||
id: 'edit-paragraph',
|
|
||||||
component: <EditParagraphController />
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (settings.indexOf('text') > -1) {
|
if (settings.indexOf('text') > -1) {
|
||||||
editors.push({
|
editors.push({
|
||||||
caption: _t.textText,
|
caption: _t.textText,
|
||||||
|
@ -353,6 +346,13 @@ const EditTabs = props => {
|
||||||
component: <EditTextController />
|
component: <EditTextController />
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (settings.indexOf('paragraph') > -1) {
|
||||||
|
editors.push({
|
||||||
|
caption: _t.textParagraph,
|
||||||
|
id: 'edit-paragraph',
|
||||||
|
component: <EditParagraphController />
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -191,9 +191,6 @@ const SettingsList = inject("storeAppOptions", "storeReview")(observer(props =>
|
||||||
onClick={onoptionclick.bind(this, "/application-settings/")}>
|
onClick={onoptionclick.bind(this, "/application-settings/")}>
|
||||||
<Icon slot="media" icon="icon-app-settings"></Icon>
|
<Icon slot="media" icon="icon-app-settings"></Icon>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem title={t('Common.Collaboration.textSharingSettings')} link="#" onClick={onoptionclick.bind(this, "/sharing-settings/")}>
|
|
||||||
<Icon slot="media" icon="icon-sharing-settings"></Icon>
|
|
||||||
</ListItem>
|
|
||||||
{_canDownload &&
|
{_canDownload &&
|
||||||
<ListItem title={_t.textDownload} link="#" onClick={onoptionclick.bind(this, "/download/")}>
|
<ListItem title={_t.textDownload} link="#" onClick={onoptionclick.bind(this, "/download/")}>
|
||||||
<Icon slot="media" icon="icon-download"></Icon>
|
<Icon slot="media" icon="icon-download"></Icon>
|
||||||
|
|
|
@ -47,13 +47,6 @@ const routes = [
|
||||||
path: '/about/',
|
path: '/about/',
|
||||||
component: About
|
component: About
|
||||||
},
|
},
|
||||||
|
|
||||||
// Sharing Settings
|
|
||||||
|
|
||||||
{
|
|
||||||
path: '/sharing-settings/',
|
|
||||||
component: SharingSettings
|
|
||||||
}
|
|
||||||
/*{
|
/*{
|
||||||
path: '/presentation-settings/',
|
path: '/presentation-settings/',
|
||||||
component: PresentationSettingsController,
|
component: PresentationSettingsController,
|
||||||
|
@ -186,9 +179,6 @@ const SettingsList = inject("storeAppOptions", "storeToolbarSettings")(observer(
|
||||||
<ListItem title={_t.textApplicationSettings} link="#" onClick={onoptionclick.bind(this, '/application-settings/')}>
|
<ListItem title={_t.textApplicationSettings} link="#" onClick={onoptionclick.bind(this, '/application-settings/')}>
|
||||||
<Icon slot="media" icon="icon-app-settings"></Icon>
|
<Icon slot="media" icon="icon-app-settings"></Icon>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem title={t('Common.Collaboration.textSharingSettings')} link="#" onClick={onoptionclick.bind(this, "/sharing-settings/")}>
|
|
||||||
<Icon slot="media" icon="icon-sharing-settings"></Icon>
|
|
||||||
</ListItem>
|
|
||||||
{_canDownload &&
|
{_canDownload &&
|
||||||
<ListItem title={_t.textDownload} link="#" onClick={onoptionclick.bind(this, '/download/')}>
|
<ListItem title={_t.textDownload} link="#" onClick={onoptionclick.bind(this, '/download/')}>
|
||||||
<Icon slot="media" icon="icon-download"></Icon>
|
<Icon slot="media" icon="icon-download"></Icon>
|
||||||
|
|
|
@ -67,13 +67,6 @@ const routes = [
|
||||||
{
|
{
|
||||||
path: '/direction/',
|
path: '/direction/',
|
||||||
component: Direction
|
component: Direction
|
||||||
},
|
|
||||||
|
|
||||||
// Sharing Settings
|
|
||||||
|
|
||||||
{
|
|
||||||
path: '/sharing-settings/',
|
|
||||||
component: SharingSettings
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -196,9 +189,6 @@ const SettingsList = inject("storeAppOptions")(observer(props => {
|
||||||
<ListItem title={_t.textApplicationSettings} link="#" onClick={onoptionclick.bind(this, '/application-settings/')}>
|
<ListItem title={_t.textApplicationSettings} link="#" onClick={onoptionclick.bind(this, '/application-settings/')}>
|
||||||
<Icon slot="media" icon="icon-app-settings"></Icon>
|
<Icon slot="media" icon="icon-app-settings"></Icon>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem title={t('Common.Collaboration.textSharingSettings')} link="#" onClick={onoptionclick.bind(this, "/sharing-settings/")}>
|
|
||||||
<Icon slot="media" icon="icon-sharing-settings"></Icon>
|
|
||||||
</ListItem>
|
|
||||||
{_canDownload &&
|
{_canDownload &&
|
||||||
<ListItem title={_t.textDownload} link="#" onClick={onoptionclick.bind(this, '/download/')}>
|
<ListItem title={_t.textDownload} link="#" onClick={onoptionclick.bind(this, '/download/')}>
|
||||||
<Icon slot="media" icon="icon-download"></Icon>
|
<Icon slot="media" icon="icon-download"></Icon>
|
||||||
|
|
Loading…
Reference in a new issue