Skip to content

Commit 9d7cc9e

Browse files
committed
modify login/-out modals
1 parent 16cde96 commit 9d7cc9e

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

packages/modules/web_themes/koala/source/src/components/UserIndicator.vue

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
<q-card-actions align="right">
1111
<q-btn
12-
flat
1312
label="Abmelden"
1413
color="negative"
1514
v-close-popup
@@ -62,7 +61,6 @@
6261

6362
<q-card-actions align="right">
6463
<q-btn
65-
flat
6664
label="Anmelden"
6765
color="positive"
6866
type="submit"
@@ -72,7 +70,7 @@
7270
v-if="dataProtectionAcknowledged"
7371
flat
7472
label="Kennwort vergessen"
75-
color="warning"
73+
color="primary"
7674
type="button"
7775
@click="
7876
showLoginDialog = false;
@@ -103,7 +101,7 @@
103101
<span class="q-ml-sm">Kennwort vergessen</span>
104102
</q-card-section>
105103

106-
<q-form @submit="login">
104+
<q-form>
107105
<q-card-section>
108106
<q-input
109107
v-model="user"
@@ -120,7 +118,14 @@
120118
<q-icon name="account_circle" />
121119
</template>
122120
</q-input>
123-
<q-input v-model="token" label="Token" type="password" dense>
121+
<q-input
122+
v-model="token"
123+
label="Token"
124+
type="password"
125+
dense
126+
:readonly="user.length === 0"
127+
:disabled="user.length === 0"
128+
>
124129
<template v-slot:prepend>
125130
<q-icon name="key" />
126131
</template>
@@ -130,6 +135,8 @@
130135
label="Neues Kennwort"
131136
type="password"
132137
dense
138+
:readonly="user.length === 0 || token.length === 0"
139+
:disabled="user.length === 0 || token.length === 0"
133140
>
134141
<template v-slot:prepend>
135142
<q-icon name="key" />
@@ -140,6 +147,8 @@
140147
label="Neues Kennwort bestätigen"
141148
type="password"
142149
dense
150+
:readonly="user.length === 0 || token.length === 0"
151+
:disabled="user.length === 0 || token.length === 0"
143152
:rules="[
144153
(value) =>
145154
value == password || 'Kennwörter stimmen nicht überein',
@@ -153,25 +162,23 @@
153162

154163
<q-card-actions align="right">
155164
<q-btn
156-
flat
157165
label="Token anfordern"
158166
color="positive"
159167
type="button"
160168
:disabled="requestTokenDisabled"
161169
@click="requestToken()"
162170
/>
163171
<q-btn
164-
flat
165172
label="Kennwort zurücksetzen"
166-
color="primary"
173+
color="warning"
167174
type="button"
168175
:disabled="resetPasswordDisabled"
169176
@click="resetPassword()"
170177
/>
171178
<q-btn
172179
flat
173180
label="Zurück"
174-
color="negative"
181+
color="primary"
175182
@click="
176183
showPasswordResetDialog = false;
177184
showLoginDialog = true;

0 commit comments

Comments
 (0)