change user to uuid

This commit is contained in:
Julian Krauser 2025-01-29 08:53:42 +01:00
parent 50cbf94ee5
commit 4c5d132de8
17 changed files with 86 additions and 93 deletions

View file

@ -154,7 +154,7 @@ export default defineComponent({
...mapActions(useNewsletterRecipientsStore, ["fetchNewsletterRecipients"]),
...mapActions(useQueryStoreStore, ["fetchQueries"]),
...mapActions(useQueryBuilderStore, ["sendQuery"]),
removeSelected(id: number) {
removeSelected(id: string) {
let index = this.recipients.findIndex((s) => s == id);
if (index != -1) {
this.recipients.splice(index, 1);

View file

@ -10,7 +10,7 @@
:model-value="presence.map((p) => p.memberId)"
:disabled="!can('create', 'club', 'protocol')"
@add:difference="
(id: number) =>
(id: string) =>
presence.push({ memberId: id, absent: false, excused: true, protocolId: parseInt(protocolId ?? '') })
"
@add:member="(s) => members.push(s)"
@ -78,7 +78,7 @@ export default defineComponent({
...mapWritableState(useProtocolPresenceStore, ["presence", "loading"]),
...mapState(useAbilityStore, ["can"]),
getMember() {
return (memberId: number) => {
return (memberId: string) => {
return this.members.find((m) => memberId == m.id);
};
},
@ -86,7 +86,7 @@ export default defineComponent({
mounted() {},
methods: {
...mapActions(useProtocolPresenceStore, ["fetchProtocolPresence"]),
removeSelected(id: number) {
removeSelected(id: string) {
let index = this.presence.findIndex((s) => s.memberId == id);
if (index != -1) {
this.presence.splice(index, 1);

View file

@ -95,7 +95,7 @@ export default defineComponent({
this.user = cloneDeep(this.origin);
},
fetchItem() {
this.fetchUserById(parseInt(this.id ?? ""))
this.fetchUserById(this.id ?? "")
.then((result) => {
this.user = result.data;
this.origin = cloneDeep(result.data);

View file

@ -57,7 +57,7 @@ export default defineComponent({
methods: {
...mapActions(useUserStore, ["fetchUserById", "updateActiveUserPermissions"]),
fetchItem() {
this.fetchUserById(parseInt(this.id ?? ""))
this.fetchUserById(this.id ?? "")
.then((result) => {
this.user = result.data;
this.loading = "fetched";

View file

@ -111,7 +111,7 @@ export default defineComponent({
this.assigned = this.origin?.roles.map((r) => r.id) ?? [];
},
fetchItem() {
this.fetchUserById(parseInt(this.id ?? ""))
this.fetchUserById(this.id ?? "")
.then((result) => {
this.origin = cloneDeep(result.data);
this.assigned = this.origin?.roles.map((r) => r.id) ?? [];