change: show only other user for owner transfer

This commit is contained in:
Julian Krauser 2025-02-07 13:26:42 +01:00
parent 117372af39
commit 88ec075d20
3 changed files with 18 additions and 12 deletions

View file

@ -5,6 +5,7 @@ import { useAbilityStore } from "./ability";
export const useAccountStore = defineStore("account", {
state: () => {
return {
id: "" as string,
firstname: "" as string,
lastname: "" as string,
mail: "" as string,
@ -17,7 +18,8 @@ export const useAccountStore = defineStore("account", {
localStorage.removeItem("refreshToken");
window.open("/login", "_self");
},
setAccountData(firstname: string, lastname: string, mail: string, alias: string) {
setAccountData(id: string, firstname: string, lastname: string, mail: string, alias: string) {
this.id = id;
this.firstname = firstname;
this.lastname = lastname;
this.mail = mail;