Problems panel: hide acknowledge button for read-only users, fix #722

This commit is contained in:
Alexander Zobnin
2019-04-22 13:10:23 +03:00
parent bc889ffe30
commit f908376802
5 changed files with 41 additions and 16 deletions

View File

@@ -110,12 +110,14 @@ export default class ProblemDetails extends PureComponent<ProblemDetailsProps, P
{problem.items && <ProblemItems items={problem.items} />}
</div>
<ProblemStatusBar problem={problem} alerts={alerts} className={compactStatusBar && 'compact'} />
<div className="problem-actions">
<ProblemActionButton className="navbar-button navbar-button--settings"
icon="reply-all"
tooltip="Acknowledge problem"
onClick={this.showAckDialog} />
</div>
{problem.showAckButton &&
<div className="problem-actions">
<ProblemActionButton className="navbar-button navbar-button--settings"
icon="reply-all"
tooltip="Acknowledge problem"
onClick={this.showAckDialog} />
</div>
}
</div>
{problem.comments &&
<div className="problem-description">