chore(ui): minor ui improvements, empty teams state
This commit is contained in:
@@ -54,10 +54,10 @@
|
|||||||
:label="$t('team.invite')"
|
:label="$t('team.invite')"
|
||||||
svg="user-plus"
|
svg="user-plus"
|
||||||
class="
|
class="
|
||||||
!bg-green-400
|
!bg-green-500
|
||||||
!text-green-500
|
!text-green-500
|
||||||
!bg-opacity-10
|
!bg-opacity-10
|
||||||
!hover:bg-opacity-10 !hover:text-green-600 !hover:bg-green-600
|
!hover:bg-opacity-10 !hover:text-green-400 !hover:bg-green-400
|
||||||
"
|
"
|
||||||
@click.native="showTeamsModal = true"
|
@click.native="showTeamsModal = true"
|
||||||
/>
|
/>
|
||||||
@@ -110,11 +110,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
import { onMounted, ref, useContext } from "@nuxtjs/composition-api"
|
||||||
onMounted,
|
|
||||||
ref,
|
|
||||||
useContext,
|
|
||||||
} from "@nuxtjs/composition-api"
|
|
||||||
import intializePwa from "~/helpers/pwa"
|
import intializePwa from "~/helpers/pwa"
|
||||||
import { probableUser$ } from "~/helpers/fb/auth"
|
import { probableUser$ } from "~/helpers/fb/auth"
|
||||||
import { getLocalConfig, setLocalConfig } from "~/newstore/localpersistence"
|
import { getLocalConfig, setLocalConfig } from "~/newstore/localpersistence"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<SmartModal
|
<SmartModal
|
||||||
v-if="show"
|
v-if="show"
|
||||||
:title="$t('app.invite_your_friends')"
|
:title="$t('team.title')"
|
||||||
@close="$emit('hide-modal')"
|
@close="$emit('hide-modal')"
|
||||||
>
|
>
|
||||||
<template #body>
|
<template #body>
|
||||||
|
|||||||
@@ -19,10 +19,18 @@
|
|||||||
E.isRight(myTeams.data) &&
|
E.isRight(myTeams.data) &&
|
||||||
myTeams.data.right.myTeams.length === 0
|
myTeams.data.right.myTeams.length === 0
|
||||||
"
|
"
|
||||||
class="flex items-center"
|
class="
|
||||||
|
flex flex-col
|
||||||
|
text-secondaryLight
|
||||||
|
p-4
|
||||||
|
items-center
|
||||||
|
justify-center
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<i class="mr-4 material-icons">help_outline</i>
|
<i class="opacity-75 pb-2 material-icons">help_outline</i>
|
||||||
{{ $t("empty.teams") }}
|
<span class="text-center">
|
||||||
|
{{ $t("empty.teams") }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-else-if="!myTeams.loading && E.isRight(myTeams.data)"
|
v-else-if="!myTeams.loading && E.isRight(myTeams.data)"
|
||||||
|
|||||||
Reference in New Issue
Block a user