[SSE mobile] Correct protection

This commit is contained in:
SergeyEzhin 2021-10-22 15:11:14 +04:00
parent bdac3a4521
commit 346ee09460
3 changed files with 2 additions and 8 deletions

View file

@ -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);

View file

@ -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
};

View file

@ -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>