Skip to content

Commit

Permalink
Message Submit button disabled 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 f55ca29 commit 593d6e2
Showing 1 changed file with 5 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

0 comments on commit 593d6e2

Please sign in to comment.