adapt checks in team views to check whether team.oidcId is present and not empty
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
viehlieb 2023-02-10 15:54:58 +01:00
parent 85f1262fc4
commit 5f98355948
2 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -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>