Skip to content

Commit

Permalink
chore: sync develop and master
Browse files Browse the repository at this point in the history
chore: sync develop and master
  • Loading branch information
arsenijesavic authored Nov 24, 2023
2 parents 10d56d3 + ba7a372 commit bae7247
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/boot/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const signTransaction = async function (actions, options = {}) {
transactionId = await this.$lightWallet.sendTransaction(actions)
}
} catch (e) {
error = this.$type === 'inApp' ? e.message : e.cause.message
error = this.$type === 'inApp' ? e?.message : e?.cause.message
console.error(e) // eslint-disable-line no-console
console.error(error) // eslint-disable-line no-console
console.error(actions) // eslint-disable-line no-console
Expand Down
5 changes: 0 additions & 5 deletions src/components/login/login-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ export default {
q-item-section.cursor-pointer(avatar @click="onLoginWallet(idx)")
img(:src="wallet.getStyle().icon" width="20")
q-item-section.cursor-pointer.text-center(@click="onLoginWallet(idx)") {{ $t('login.login-view.login1', { '1': wallet.getStyle().text, '2': wallet.getStyle().text === 'Seeds' ? '(beta)' : '' }) }}
q-item-section(avatar)
.flex
loading-spinner(v-if="loading === wallet.getStyle().text" :color="wallet.getStyle().textColor" size="2em")
q-btn(v-else :color="wallet.getStyle().textColor" icon="fas fa-cloud-download-alt" @click="openUrl(wallet.getOnboardingLink())" target="_blank" dense flat size="10px")
q-tooltip {{ $t('login.login-view.getApp') }}
.row.flex.items-center
.col-7.q-mr-sm
q-select.q-mt-md(:options="authenticators" dense dropdown-icon="fas fa-chevron-down" hide-bottom-space options-dense outlined rounded v-model="selectedAuthenticator")
Expand Down
10 changes: 6 additions & 4 deletions src/components/login/register-user-with-captcha-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default {
return this.form.title && this.form.description && this.form.logo
},
canPublish() {
return this.canNextStep
return (this.canNextStep && (this.form.email)) || (this.skipEmailStep && this.canNextStep)
}
},
watch: {
Expand Down Expand Up @@ -231,7 +231,9 @@ export default {
},
isDraft
})
await this.updateProfile({ data: { email: this.form.email, affiliate: this.form.affiliate } })
if (this.form.affiliate && this.form.email) {
await this.updateProfile({ data: { email: this.form.email, affiliate: this.form.affiliate } })
}
this.$emit('stepChanged', this.steps.loading.name)
this.showLoadingModal = true
await this.updateProgressBar()
Expand Down Expand Up @@ -410,8 +412,8 @@ export default {
.col
q-input.rounded-border.bg-internal-bg(dense disable outlined v-model="form.title")
nav.row.justify-end.q-mt-xl.q-gutter-xs
q-btn.q-px-xl(:disable="!!form.email || !!form.affiliate" @click="skipEmailStep = true, clearEmailFields()" v-if="$q.screen.gt.md && !skipEmailStep" color="primary" :label="$t('login.register-user-with-captcha-view.skipForNow')" no-caps rounded unelevated outline)
q-btn.q-px-xl(:disable="canPublish && !skipEmailStep" v-if="$q.screen.gt.md" @click="onSubmit" color="primary" :label="$t('login.register-user-with-captcha-view.publishYourDao')" no-caps rounded unelevated)
q-btn.q-px-xl(@click="skipEmailStep = true, clearEmailFields()" v-if="$q.screen.gt.md && !skipEmailStep" color="primary" :label="$t('login.register-user-with-captcha-view.skipForNow')" no-caps rounded unelevated outline)
q-btn.q-px-xl(:disable="!canPublish" v-if="$q.screen.gt.md" @click="onSubmit" color="primary" :label="$t('login.register-user-with-captcha-view.publishYourDao')" no-caps rounded unelevated)
#form5.flex.items-center.justify-center.no-wrap(v-show="step === this.steps.loading.name")
q-dialog(v-if="$q.screen.gt.md" :value="showLoadingModal" persistent)
widget.bg-white.q-pa-xxxl.width-auto.col-auto.full-width(:style="'border-radius: 25px; box-shadow: 0px 0px 26px 0px rgba(0, 0, 41, 0.2); max-width: 1180px;'")
Expand Down
4 changes: 3 additions & 1 deletion src/pages/dho/Explore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { mapGetters } from 'vuex'
import { EXPLORE_BY } from '~/const'
import ipfsy from '~/utils/ipfsy'
import { dateToString } from '~/utils/TimeUtils'
import lodash from 'lodash'
export default {
name: 'page-explore',
Expand All @@ -19,6 +20,7 @@ export default {
data () {
return {
lodash,
dateToString,
EXPLORE_BY,
mobileFilterOpen: false,
Expand Down Expand Up @@ -249,7 +251,7 @@ q-page.page-explore(:style="'overflow-x: hidden'")
.col-sm-12.col-md-12.col-lg-9(ref="scrollContainer" v-if="exploreBy === EXPLORE_BY.DAOS")
q-infinite-scroll(@load="onLoad" :offset="250" :scroll-target="$refs.scrollContainer" ref="scroll")
.row
.col-4.q-mb-md(v-for="(dho,index) in dhos" :key="dho.name" :class="{'col-6': $q.screen.lt.lg, 'q-pr-md': $q.screen.lt.sm ? false : $q.screen.gt.md ? true : index % 2 === 0, 'full-width': view === 'list' || $q.screen.lt.sm}")
.col-4.q-mb-md(v-for="(dho,index) in lodash.uniqBy(dhos, 'name')" :key="dho.name" :class="{'col-6': $q.screen.lt.lg, 'q-pr-md': $q.screen.lt.sm ? false : $q.screen.gt.md ? true : index % 2 === 0, 'full-width': view === 'list' || $q.screen.lt.sm}")
dho-card.full-width(v-bind="dho" :view="view" useIpfsy ellipsis)
template(v-slot:footer)
footer.full-width.row.items-center
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dho/Organization.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default {
recentPayouts: {
query: require('~/query/payouts/dao-recent-payouts.gql'),
update: data => {
const { count } = data.getDao.payoutAggregate
const { count } = data.queryDao?.[0].treasury?.[0].redemptionAggregate
return count.toString()
},
skip () {
Expand Down
13 changes: 6 additions & 7 deletions src/query/payouts/dao-recent-payouts.gql
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
query recentPayouts ($daoId: String!, $filter: PayoutFilter) {
getDao (docId: $daoId) {
docId
payoutAggregate (
filter: $filter
) {
count
query recentPayouts ($daoId: String!) {
queryDao (filter: { docId: { eq: $daoId } }) {
treasury {
redemptionAggregate {
count
}
}
}
}

0 comments on commit bae7247

Please sign in to comment.