Clicking "subscribe pending" button performs unsubscribe (fixes #705) (#706)

This commit is contained in:
Nutomic 2022-07-11 18:07:47 +00:00 committed by GitHub
parent 130748a0c3
commit 5dfb26cfd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,9 +130,13 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
</a> </a>
)} )}
{subscribed == SubscribedType.Pending && ( {subscribed == SubscribedType.Pending && (
<div class="badge badge-warning mr-2"> <a
class="btn btn-warning mr-2"
href="#"
onClick={linkEvent(this, this.handleUnsubscribe)}
>
{i18n.t("subscribe_pending")} {i18n.t("subscribe_pending")}
</div> </a>
)} )}
{community.removed && ( {community.removed && (
<small className="mr-2 text-muted font-italic"> <small className="mr-2 text-muted font-italic">