refactor: remove EAInvite flag

This commit is contained in:
liyasthomas
2021-10-03 15:49:04 +05:30
parent ccdd4963cd
commit 7f501241f0
5 changed files with 43 additions and 60 deletions

View File

@@ -7,7 +7,7 @@
:selected="true"
/>
<SmartTab
v-if="currentUser && currentUser.eaInvited && !doc"
v-if="currentUser && !doc"
:id="'team-collections'"
:label="`${$t('collection.team_collections')}`"
>

View File

@@ -44,7 +44,7 @@ const {
$toast,
} = useContext()
const $t = i18n.t.bind(i18n)
const t = i18n.t.bind(i18n)
defineProps<{
show: boolean
@@ -66,7 +66,7 @@ const addNewTeam = () =>
(err) => {
// err is of type "invalid_name" | GQLError<Err>
if (err === "invalid_name") {
$toast.error($t("team.name_length_insufficient").toString(), {
$toast.error(t("team.name_length_insufficient").toString(), {
icon: "error_outline",
})
} else {

View File

@@ -36,6 +36,13 @@
@edit-team="editTeam(team, team.id)"
/>
</div>
<div
v-if="!myTeams.loading && E.isLeft(myTeams.data)"
class="flex items-center flex-col"
>
<i class="mb-4 material-icons">help_outline</i>
{{ $t("error.something_went_wrong") }}
</div>
</div>
<TeamsAdd :show="showModalAdd" @hide-modal="displayModalAdd(false)" />
<!-- ¯\_(ツ)_/¯ -->