refactor: remove EAInvite flag
This commit is contained in:
@@ -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')}`"
|
||||
>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)" />
|
||||
<!-- ¯\_(ツ)_/¯ -->
|
||||
|
||||
Reference in New Issue
Block a user