[SSE mobile] Correct protection
This commit is contained in:
parent
bdac3a4521
commit
346ee09460
|
@ -76,7 +76,7 @@ const routes = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/comments/',
|
path: '/comments/',
|
||||||
component: ViewCommentsSheetsController,
|
asyncComponent: () => window.editorType == 'sse' ? ViewCommentsSheetsController : ViewCommentsController,
|
||||||
options: {
|
options: {
|
||||||
props: {
|
props: {
|
||||||
allComments: true
|
allComments: true
|
||||||
|
@ -123,7 +123,6 @@ const PageCollaboration = inject('storeAppOptions', 'users')(observer(props => {
|
||||||
)
|
)
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
class CollaborationView extends Component {
|
class CollaborationView extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -628,7 +628,7 @@ const pickLink = (message) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// View comments
|
// View comments
|
||||||
// ({storeComments, storeAppOptions, onCommentMenuClick, onResolveComment, showComment, storeReview, storeWorksheets})
|
|
||||||
const ViewComments = inject("storeComments", "storeAppOptions", "storeReview")(observer(({storeComments, storeAppOptions, onCommentMenuClick, onResolveComment, showComment, storeReview, wsProps}) => {
|
const ViewComments = inject("storeComments", "storeAppOptions", "storeReview")(observer(({storeComments, storeAppOptions, onCommentMenuClick, onResolveComment, showComment, storeReview, wsProps}) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const _t = t('Common.Collaboration', {returnObjects: true});
|
const _t = t('Common.Collaboration', {returnObjects: true});
|
||||||
|
@ -739,8 +739,6 @@ const ViewComments = inject("storeComments", "storeAppOptions", "storeReview")(o
|
||||||
)
|
)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// const _ViewComments = inject('storeComments', 'storeAppOptions', "storeReview")(observer(ViewComments));
|
|
||||||
|
|
||||||
const CommentList = inject("storeComments", "storeAppOptions", "storeReview")(observer(({storeComments, storeAppOptions, onCommentMenuClick, onResolveComment, storeReview, wsProps}) => {
|
const CommentList = inject("storeComments", "storeAppOptions", "storeReview")(observer(({storeComments, storeAppOptions, onCommentMenuClick, onResolveComment, storeReview, wsProps}) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const _t = t('Common.Collaboration', {returnObjects: true});
|
const _t = t('Common.Collaboration', {returnObjects: true});
|
||||||
|
@ -947,6 +945,5 @@ export {
|
||||||
AddReply,
|
AddReply,
|
||||||
EditReply,
|
EditReply,
|
||||||
ViewComments,
|
ViewComments,
|
||||||
// _ViewComments as ViewComments,
|
|
||||||
ViewCurrentComments
|
ViewCurrentComments
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,6 @@ import {
|
||||||
AddCommentController,
|
AddCommentController,
|
||||||
CommentsController,
|
CommentsController,
|
||||||
EditCommentController,
|
EditCommentController,
|
||||||
ViewCommentsController,
|
|
||||||
ViewCommentsSheetsController
|
ViewCommentsSheetsController
|
||||||
} from "../../../../common/mobile/lib/controller/collaboration/Comments";
|
} from "../../../../common/mobile/lib/controller/collaboration/Comments";
|
||||||
import {LocalStorage} from "../../../../common/mobile/utils/LocalStorage";
|
import {LocalStorage} from "../../../../common/mobile/utils/LocalStorage";
|
||||||
|
@ -889,7 +888,6 @@ class MainController extends Component {
|
||||||
<AddCommentController />
|
<AddCommentController />
|
||||||
<EditCommentController />
|
<EditCommentController />
|
||||||
<ViewCommentsSheetsController />
|
<ViewCommentsSheetsController />
|
||||||
{/* <ViewCommentsController /> */}
|
|
||||||
<PluginsController />
|
<PluginsController />
|
||||||
<EncodingController />
|
<EncodingController />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
|
Loading…
Reference in a new issue