1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat: select definer in view creation/edit

This commit is contained in:
2020-12-29 10:35:46 +01:00
parent 0df2b836b1
commit ab307f82b1
7 changed files with 98 additions and 15 deletions

View File

@ -39,12 +39,27 @@
<div class="column col-3">
<div class="form-group">
<label class="form-label">{{ $t('word.definer') }}</label>
<input
<select
v-if="workspace.users.length"
v-model="localView.definer"
class="form-input"
type="text"
readonly
class="form-select"
>
<option value="">
{{ $t('message.currentUser') }}
</option>
<option
v-for="user in workspace.users"
:key="`${user.name}@${user.host}`"
:value="`\`${user.name}\`@\`${user.host}\``"
>
{{ user.name }}@{{ user.host }}
</option>
</select>
<select v-if="!workspace.users.length" class="form-select">
<option value="">
{{ $t('message.currentUser') }}
</option>
</select>
</div>
</div>
</div>