Skip to content

Commit

Permalink
prevent posting comments if arweave balance too low
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Oct 6, 2024
1 parent 251557b commit 194c50b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/chat/ChatFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<!-- Create Message button -->
<button
v-if="isActivated && isSupportedChain && hasDomainOrNotRequired"
:disabled="!messageText || waitingCreateMessage"
:disabled="!messageText || waitingCreateMessage || arweaveBalanceTooLow"
class="btn btn-primary me-2 mt-2"
@click="createMessage"
>
Expand Down Expand Up @@ -208,6 +208,10 @@ export default {
},
computed: {
arweaveBalanceTooLow() {
return this.siteStore.arweaveBalance < this.$config.arweaveMinBalance
},
createMessagePlaceholder() {
if (this.isActivated) {
if (this.isReplyFeed) {
Expand Down
5 changes: 5 additions & 0 deletions public/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ a:hover {
.sidebar-nav {
width: 260px;
}

.youtube-embed {
max-width: 560px;
max-height: 340px;
}
}

/* Mobile only */
Expand Down

0 comments on commit 194c50b

Please sign in to comment.