mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 14:06:09 +08:00
[common] Correct connection store in collaboration
This commit is contained in:
@ -4,7 +4,7 @@ import { List, ListItem, Navbar, NavRight, Page, Icon, Link } from 'framework7-r
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Device } from "../../utils/device";
|
||||
|
||||
const CollaborationPage = inject('storeAppOptions', 'users', 'storeDocumentInfo')(observer(props => {
|
||||
const CollaborationPage = props => {
|
||||
const { t } = useTranslation();
|
||||
const _t = t('Common.Collaboration', {returnObjects: true});
|
||||
const appOptions = props.storeAppOptions;
|
||||
@ -49,6 +49,22 @@ const CollaborationPage = inject('storeAppOptions', 'users', 'storeDocumentInfo'
|
||||
</List>
|
||||
</Page>
|
||||
)
|
||||
}));
|
||||
};
|
||||
|
||||
export default CollaborationPage;
|
||||
let storeInfo;
|
||||
|
||||
switch (window.asceditor) {
|
||||
case 'word':
|
||||
storeInfo = 'storeDocumentInfo';
|
||||
break;
|
||||
case 'slide':
|
||||
storeInfo = 'storePresentationInfo';
|
||||
break;
|
||||
case 'cell':
|
||||
storeInfo = 'storeSpreadsheetInfo';
|
||||
break;
|
||||
}
|
||||
|
||||
const Collaboration = inject('storeAppOptions', 'users', storeInfo)(observer(CollaborationPage));
|
||||
|
||||
export { Collaboration as CollaborationPage };
|
||||
@ -5,7 +5,7 @@ import { ReviewController, ReviewChangeController } from "../../controller/colla
|
||||
import { PageDisplayMode } from "./Review";
|
||||
import { ViewCommentsController, ViewCommentsSheetsController } from "../../controller/collaboration/Comments";
|
||||
import SharingSettingsController from "../../controller/SharingSettings";
|
||||
import CollaborationPage from '../../pages/CollaborationPage';
|
||||
import { CollaborationPage } from '../../pages/CollaborationPage';
|
||||
import UsersPage from '../../pages/UsersPage';
|
||||
|
||||
const routes = [
|
||||
|
||||
Reference in New Issue
Block a user