mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Gray out zap/like sometimes
This commit is contained in:
parent
e23caa311a
commit
66b16c4db4
@ -65,7 +65,7 @@
|
||||
likes = reject(propEq("id", e.id), likes)
|
||||
}
|
||||
|
||||
const startZap = async () => {
|
||||
const startZap = () => {
|
||||
draftZap = {
|
||||
amount: user.getSetting("defaultZap"),
|
||||
message: "",
|
||||
@ -190,7 +190,7 @@
|
||||
</button>
|
||||
<button
|
||||
class={cx("w-16 text-left", {
|
||||
"pointer-events-none opacity-50": disableActions,
|
||||
"pointer-events-none opacity-50": disableActions || $author.pubkey === user.getPubkey(),
|
||||
"text-accent": like,
|
||||
})}
|
||||
on:click={() => (like ? deleteReaction(like) : react("+"))}>
|
||||
@ -202,7 +202,8 @@
|
||||
</button>
|
||||
<button
|
||||
class={cx("w-20 text-left", {
|
||||
"pointer-events-none opacity-50": disableActions,
|
||||
"pointer-events-none opacity-50":
|
||||
disableActions || $author.pubkey === user.getPubkey() || !$author.zapper,
|
||||
"text-accent": zap,
|
||||
})}
|
||||
on:click={startZap}>
|
||||
|
Loading…
Reference in New Issue
Block a user