mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 19:46:42 +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)
|
likes = reject(propEq("id", e.id), likes)
|
||||||
}
|
}
|
||||||
|
|
||||||
const startZap = async () => {
|
const startZap = () => {
|
||||||
draftZap = {
|
draftZap = {
|
||||||
amount: user.getSetting("defaultZap"),
|
amount: user.getSetting("defaultZap"),
|
||||||
message: "",
|
message: "",
|
||||||
@ -190,7 +190,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class={cx("w-16 text-left", {
|
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,
|
"text-accent": like,
|
||||||
})}
|
})}
|
||||||
on:click={() => (like ? deleteReaction(like) : react("+"))}>
|
on:click={() => (like ? deleteReaction(like) : react("+"))}>
|
||||||
@ -202,7 +202,8 @@
|
|||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class={cx("w-20 text-left", {
|
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,
|
"text-accent": zap,
|
||||||
})}
|
})}
|
||||||
on:click={startZap}>
|
on:click={startZap}>
|
||||||
|
Loading…
Reference in New Issue
Block a user