Benutzerliste (für Admin) vorbereitet, übersetzungen hinzugefügt
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
let newEmpty = $derived(!/\S/.test(newPass));
|
||||
let mismatch = $derived(newPass != repeat);
|
||||
|
||||
let error = $state("");
|
||||
|
||||
function abort(){
|
||||
editPassword = false;
|
||||
}
|
||||
@@ -29,6 +31,8 @@
|
||||
if (resp.ok){
|
||||
const json = await resp.json();
|
||||
console.log(json);
|
||||
} else {
|
||||
error = await resp.text();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -61,4 +65,7 @@
|
||||
</label>
|
||||
<button onclick={submit} disabled={oldEmpty||newEmpty||mismatch}>{t('user.update')}</button>
|
||||
<button onclick={abort}>{t('user.abort')}</button>
|
||||
{#if error}
|
||||
<span class="error">{error}</span>
|
||||
{/if}
|
||||
</fieldset>
|
||||
@@ -91,4 +91,10 @@
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
{#if user.permissions.includes('LIST_USERS')}
|
||||
<fieldset>
|
||||
<legend>{t('user.list')}</legend>
|
||||
User list goes here…
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user