mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
Improved channel subscribe button.
This commit is contained in:
parent
0f5ad25a92
commit
5bf24d1576
@ -185,20 +185,20 @@ const Channel: NextPage = () => {
|
|||||||
className="unsubscribe"
|
className="unsubscribe"
|
||||||
type="button"
|
type="button"
|
||||||
id="{{ channel.source.channel_id }}"
|
id="{{ channel.source.channel_id }}"
|
||||||
onClick={() => console.log("unsubscribe(this.id)")}
|
onClick={() => console.log("unsubscribe(this.id) -> toggleSubscribe()")}
|
||||||
title="Unsubscribe from {{ channel.source.channel_name }}"
|
title={`${channel?.channel_subscribed ? "Unsubscribe from" : "Subscribe to"} ${channel?.channel_name}`}
|
||||||
>
|
>
|
||||||
Unsubscribe
|
{channel?.channel_subscribed ? "Unsubscribe" : "Subscribe"}
|
||||||
</button>
|
</button>
|
||||||
{/* {% else %} */}
|
{/* {% else %} */}
|
||||||
<button
|
{/* <button
|
||||||
type="button"
|
type="button"
|
||||||
id="{{ channel.source.channel_id }}"
|
id="{{ channel.source.channel_id }}"
|
||||||
onClick={() => console.log("subscribe(this.id)")}
|
onClick={() => console.log("subscribe(this.id)")}
|
||||||
title="Subscribe to {{ channel.source.channel_name }}"
|
title="Subscribe to {{ channel.source.channel_name }}"
|
||||||
>
|
>
|
||||||
Subscribe
|
Subscribe
|
||||||
</button>
|
</button> */}
|
||||||
{/* {% endif %} */}
|
{/* {% endif %} */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user