fix(ui) Minor usability fixes for transfer / invite dialog

This commit is contained in:
Ferdinand Thiessen 2021-11-29 11:32:20 +01:00
parent de6e959937
commit 81c33ece8c
2 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,7 @@
"@quasar/quasar-ui-qcalendar": "^4.0.0-beta.10"
},
"devDependencies": {
"@flaschengeist/api": "^1.0.0-alpha.5",
"@flaschengeist/types": "^1.0.0-alpha.8",
"@quasar/app": "^3.2.3",
"quasar": "^2.3.3",

View File

@ -13,7 +13,8 @@
filled
:options="otherUsers"
:option-label="(opt) => opt.display_name"
:multiple="isInvite"
:option-disable="(opt) => !isInvite && invitees.length > 0 && opt != invitees[0]"
multiple
use-chips
stack-label
label="Dienste"
@ -22,7 +23,7 @@
</q-card-section>
<!-- buttons example -->
<q-card-actions align="right">
<q-btn color="primary" label="Ok" @click="invite" />
<q-btn color="primary" label="Ok" :disable="invitees.length === 0" @click="invite" />
<q-btn color="primary" label="Abbrechen" @click="onDialogCancel" />
</q-card-actions>
</q-card>