mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 13:51:13 +00:00
Hide deny / approve buttons
This commit is contained in:
parent
6d214a4646
commit
b7b6ca7b44
1 changed files with 10 additions and 8 deletions
|
@ -91,14 +91,16 @@ export class RegistrationApplication extends Component<
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<button
|
{(!ra.admin_id || (ra.admin_id && !accepted)) && (
|
||||||
className="btn btn-secondary mr-2 my-2"
|
<button
|
||||||
onClick={linkEvent(this, this.handleApprove)}
|
className="btn btn-secondary mr-2 my-2"
|
||||||
aria-label={i18n.t("approve")}
|
onClick={linkEvent(this, this.handleApprove)}
|
||||||
>
|
aria-label={i18n.t("approve")}
|
||||||
{i18n.t("approve")}
|
>
|
||||||
</button>
|
{i18n.t("approve")}
|
||||||
{!this.props.application.registration_application.deny_reason && (
|
</button>
|
||||||
|
)}
|
||||||
|
{(!ra.admin_id || (ra.admin_id && accepted)) && (
|
||||||
<button
|
<button
|
||||||
className="btn btn-secondary mr-2"
|
className="btn btn-secondary mr-2"
|
||||||
onClick={linkEvent(this, this.handleDeny)}
|
onClick={linkEvent(this, this.handleDeny)}
|
||||||
|
|
Loading…
Reference in a new issue