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