[DE mobile] Fix Bug 56709
This commit is contained in:
parent
6041671b5f
commit
d5a269975c
|
@ -637,6 +637,7 @@ const ViewComments = inject("storeComments", "storeAppOptions", "storeReview")(o
|
|||
const isAndroid = Device.android;
|
||||
const displayMode = storeReview.displayMode;
|
||||
const isViewer = storeAppOptions.isViewer;
|
||||
const canEditComments = storeAppOptions.canEditComments;
|
||||
const viewMode = !storeAppOptions.canComments;
|
||||
const comments = storeComments.groupCollectionFilter || storeComments.collectionComments;
|
||||
const isEdit = storeAppOptions.isEdit || storeAppOptions.isRestrictedEdit;
|
||||
|
@ -677,8 +678,8 @@ const ViewComments = inject("storeComments", "storeAppOptions", "storeReview")(o
|
|||
</div>
|
||||
{isEdit && !viewMode &&
|
||||
<div className='right'>
|
||||
{(comment.editable && displayMode === 'markup' && !wsProps?.Objects && !isViewer) && <div className='comment-resolve' onClick={() => {onResolveComment(comment);}}><Icon icon={comment.resolved ? 'icon-resolve-comment check' : 'icon-resolve-comment'} /></div> }
|
||||
{(displayMode === 'markup' && !wsProps?.Objects && !isViewer) &&
|
||||
{(comment.editable && displayMode === 'markup' && !wsProps?.Objects && (!isViewer || canEditComments)) && <div className='comment-resolve' onClick={() => {onResolveComment(comment);}}><Icon icon={comment.resolved ? 'icon-resolve-comment check' : 'icon-resolve-comment'} /></div> }
|
||||
{(displayMode === 'markup' && !wsProps?.Objects && (!isViewer || canEditComments)) &&
|
||||
<div className='comment-menu'
|
||||
onClick={() => {setComment(comment); openActionComment(true);}}>
|
||||
<Icon icon='icon-menu-comment'/>
|
||||
|
@ -708,7 +709,7 @@ const ViewComments = inject("storeComments", "storeAppOptions", "storeReview")(o
|
|||
<div className='reply-date'>{reply.date}</div>
|
||||
</div>
|
||||
</div>
|
||||
{isEdit && !viewMode && reply.editable && !isViewer &&
|
||||
{isEdit && !viewMode && reply.editable && (!isViewer || canEditComments) &&
|
||||
<div className='right'>
|
||||
<div className='reply-menu'
|
||||
onClick={() => {setComment(comment); setReply(reply); openActionReply(true);}}
|
||||
|
@ -748,6 +749,7 @@ const CommentList = inject("storeComments", "storeAppOptions", "storeReview")(ob
|
|||
const isAndroid = Device.android;
|
||||
const displayMode = storeReview.displayMode;
|
||||
const isViewer = storeAppOptions.isViewer;
|
||||
const canEditComments = storeAppOptions.canEditComments;
|
||||
const viewMode = !storeAppOptions.canComments;
|
||||
const isEdit = storeAppOptions.isEdit || storeAppOptions.isRestrictedEdit;
|
||||
const comments = storeComments.showComments;
|
||||
|
@ -787,7 +789,7 @@ const CommentList = inject("storeComments", "storeAppOptions", "storeReview")(ob
|
|||
<Fragment>
|
||||
<Toolbar position='bottom'>
|
||||
{isEdit && !viewMode &&
|
||||
<Link className={`btn-add-reply${wsProps?.Objects || isViewer ? ' disabled' : ''}`} href='#' onClick={() => {onCommentMenuClick('addReply', comment);}}>{_t.textAddReply}</Link>
|
||||
<Link className={`btn-add-reply${(wsProps?.Objects || isViewer) && !canEditComments ? ' disabled' : ''}`} href='#' onClick={() => {onCommentMenuClick('addReply', comment);}}>{_t.textAddReply}</Link>
|
||||
}
|
||||
<div className='comment-navigation row'>
|
||||
<Link href='#' onClick={onViewPrevComment}><Icon slot='media' icon='icon-prev'/></Link>
|
||||
|
@ -808,8 +810,8 @@ const CommentList = inject("storeComments", "storeAppOptions", "storeReview")(ob
|
|||
</div>
|
||||
{isEdit && !viewMode &&
|
||||
<div className='right'>
|
||||
{(comment.editable && displayMode === 'markup' && !wsProps?.Objects && !isViewer) && <div className='comment-resolve' onClick={() => {onResolveComment(comment);}}><Icon icon={comment.resolved ? 'icon-resolve-comment check' : 'icon-resolve-comment'}/></div>}
|
||||
{(displayMode === 'markup' && !wsProps?.Objects && !isViewer) &&
|
||||
{(comment.editable && displayMode === 'markup' && !wsProps?.Objects && (!isViewer || canEditComments)) && <div className='comment-resolve' onClick={() => {onResolveComment(comment);}}><Icon icon={comment.resolved ? 'icon-resolve-comment check' : 'icon-resolve-comment'}/></div>}
|
||||
{(displayMode === 'markup' && !wsProps?.Objects && (!isViewer || canEditComments)) &&
|
||||
<div className='comment-menu'
|
||||
onClick={() => {openActionComment(true);}}>
|
||||
<Icon icon='icon-menu-comment'/>
|
||||
|
@ -839,7 +841,7 @@ const CommentList = inject("storeComments", "storeAppOptions", "storeReview")(ob
|
|||
<div className='reply-date'>{reply.date}</div>
|
||||
</div>
|
||||
</div>
|
||||
{isEdit && !viewMode && reply.editable && !isViewer &&
|
||||
{isEdit && !viewMode && reply.editable && (!isViewer || canEditComments) &&
|
||||
<div className='right'>
|
||||
<div className='reply-menu'
|
||||
onClick={() => {setReply(reply); openActionReply(true);}}
|
||||
|
|
Loading…
Reference in a new issue