forked from vikunja/frontend
adapt checks in team views to check whether team.oidcId is present and not empty
This commit is contained in:
parent
0b8d8c09c8
commit
2d2fcc5d96
|
@ -3,7 +3,7 @@
|
|||
class="loader-container is-max-width-desktop"
|
||||
:class="{ 'is-loading': teamService.loading }"
|
||||
>
|
||||
<card class="is-fullwidth" v-if="userIsAdmin && team.oidcId == 0" :title="title">
|
||||
<card class="is-fullwidth" v-if="userIsAdmin && !team.oidcId" :title="title">
|
||||
<form @submit.prevent="save()">
|
||||
<div class="field">
|
||||
<label
|
||||
|
@ -68,7 +68,7 @@
|
|||
</card>
|
||||
|
||||
<card class="is-fullwidth has-overflow" :title="$t('team.edit.members')" :padding="false">
|
||||
<div class="p-4" v-if="userIsAdmin && team.oidcId">
|
||||
<div class="p-4" v-if="userIsAdmin && !team.oidcId">
|
||||
<div class="field has-addons">
|
||||
<div class="control is-expanded">
|
||||
<Multiselect
|
||||
|
|
|
@ -15,11 +15,8 @@
|
|||
<ul class="teams box" v-if="teams.length > 0">
|
||||
<li :key="t.id" v-for="t in teams">
|
||||
<router-link :to="{name: 'teams.edit', params: {id: t.id}}">
|
||||
<p v-if="t.oidcId">
|
||||
{{ t.name }}{{ " (sso: " + t.oidcId + ")" }}
|
||||
</p>
|
||||
<p v-else>
|
||||
{{ t.name }}
|
||||
<p>
|
||||
{{ t.name + (t.oidcId ? ` (sso: ${t.oidcId})`: '')}}
|
||||
</p>
|
||||
</router-link>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue