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
85f1262fc4
commit
5f98355948
|
@ -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 class="label" for="teamtext">{{ $t('team.attributes.name') }}</label>
|
||||
|
@ -63,7 +63,7 @@
|
|||
</card>
|
||||
|
||||
<card class="is-fullwidth has-overflow" :title="$t('team.edit.members')" :padding="false">
|
||||
<div class="p-4" v-if="userIsAdmin && team.oidcId == 0">
|
||||
<div class="p-4" v-if="userIsAdmin && !team.oidcId">
|
||||
<div class="field has-addons">
|
||||
<div class="control is-expanded">
|
||||
<multiselect
|
||||
|
|
|
@ -12,11 +12,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 != 0">
|
||||
{{ 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