fix: proper state indicatior in teams collections

This commit is contained in:
liyasthomas
2021-08-16 08:18:48 +05:30
parent 33e2afab7b
commit c6a3b784b5
5 changed files with 8 additions and 6 deletions

View File

@@ -29,6 +29,7 @@
v-tippy="{ theme: 'tooltip' }" v-tippy="{ theme: 'tooltip' }"
:title="$t('header.install_pwa')" :title="$t('header.install_pwa')"
icon="offline_bolt" icon="offline_bolt"
class="rounded"
@click.native="showInstallPrompt()" @click.native="showInstallPrompt()"
/> />
<ButtonSecondary <ButtonSecondary
@@ -63,6 +64,7 @@
v-else v-else
v-tippy="{ theme: 'tooltip' }" v-tippy="{ theme: 'tooltip' }"
:title="$t('account')" :title="$t('account')"
class="rounded"
icon="account_circle" icon="account_circle"
/> />
</template> </template>

View File

@@ -106,7 +106,7 @@
/> />
</div> </div>
<div <div
v-if="collections.length === 0" v-if="filteredCollections.length === 0 && filterText.length === 0"
class="flex flex-col text-secondaryLight p-4 items-center justify-center" class="flex flex-col text-secondaryLight p-4 items-center justify-center"
> >
<span class="text-center pb-4"> <span class="text-center pb-4">
@@ -132,7 +132,7 @@
/> />
</div> </div>
<div <div
v-if="!(filteredCollections.length !== 0 || collections.length === 0)" v-if="filterText.length !== 0 && filteredCollections.length === 0"
class="flex flex-col text-secondaryLight p-4 items-center justify-center" class="flex flex-col text-secondaryLight p-4 items-center justify-center"
> >
<i class="opacity-75 pb-2 material-icons">manage_search</i> <i class="opacity-75 pb-2 material-icons">manage_search</i>

View File

@@ -332,7 +332,7 @@ export default {
}) })
.catch((e) => { .catch((e) => {
console.error(e) console.error(e)
this.$toast.error(error.message, { this.$toast.error(e.message, {
icon: "error", icon: "error",
}) })
this.signingInWithEmail = false this.signingInWithEmail = false

View File

@@ -335,7 +335,7 @@ export default defineComponent({
}) })
}) })
.catch((e) => { .catch((e) => {
this.$toast.error(error, { this.$toast.error(e, {
icon: "done", icon: "done",
}) })
console.error(e) console.error(e)
@@ -355,7 +355,7 @@ export default defineComponent({
}) })
}) })
.catch((e) => { .catch((e) => {
this.$toast.error(error, { this.$toast.error(e, {
icon: "done", icon: "done",
}) })
console.error(e) console.error(e)

View File

@@ -227,7 +227,7 @@ export async function deleteTeam(apollo, teamID) {
} }
export function exitTeam(apollo, teamID) { export function exitTeam(apollo, teamID) {
apollo.mutate({ return apollo.mutate({
mutation: gql` mutation: gql`
mutation ($teamID: String!) { mutation ($teamID: String!) {
leaveTeam(teamID: $teamID) leaveTeam(teamID: $teamID)