release v2.0.0 #4
|
@ -38,7 +38,7 @@
|
||||||
class="col-xs-12 col-sm-6 q-pa-sm"
|
class="col-xs-12 col-sm-6 q-pa-sm"
|
||||||
label="Benutzername"
|
label="Benutzername"
|
||||||
:readonly="!newUser"
|
:readonly="!newUser"
|
||||||
:rules="[isUIDUsed, notEmpty]"
|
:rules="[isFreeUID, notEmpty]"
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
filled
|
filled
|
||||||
/>
|
/>
|
||||||
|
@ -183,9 +183,9 @@ export default defineComponent({
|
||||||
newPassword.value = '';
|
newPassword.value = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function isUIDUsed(val: string) {
|
function isFreeUID(val: string) {
|
||||||
return (
|
return (
|
||||||
userStore.users.findIndex((user) => user.userid === val) !== -1 ||
|
userStore.users.findIndex((user) => user.userid === val) === -1 ||
|
||||||
'Benutzername ist schon vergeben'
|
'Benutzername ist schon vergeben'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ export default defineComponent({
|
||||||
canSetRoles,
|
canSetRoles,
|
||||||
isCurrentUser,
|
isCurrentUser,
|
||||||
isEmail,
|
isEmail,
|
||||||
isUIDUsed,
|
isFreeUID,
|
||||||
newPassword,
|
newPassword,
|
||||||
notEmpty,
|
notEmpty,
|
||||||
onAvatarRejected,
|
onAvatarRejected,
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
:options="permissions"
|
:options="permissions"
|
||||||
color="primary"
|
color="primary"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@input="updatePermissions"
|
@update:modelValue="updatePermissions"
|
||||||
/>
|
/>
|
||||||
</q-scroll-area>
|
</q-scroll-area>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
Loading…
Reference in New Issue