change user to uuid
This commit is contained in:
parent
50cbf94ee5
commit
4c5d132de8
17 changed files with 86 additions and 93 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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) ?? [];
|
||||
|
|
|
@ -11,53 +11,53 @@
|
|||
<component v-if="markdownComponent" :is="markdownComponent" />
|
||||
<p v-else>Diese Seite existiert nicht.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</MainTemplate>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw} from "vue";
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import 'highlight.js/styles/atom-one-dark.css';
|
||||
import "highlight.js/styles/atom-one-dark.css";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export default defineComponent({
|
||||
props: {
|
||||
page: String
|
||||
page: String,
|
||||
},
|
||||
watch:{
|
||||
watch: {
|
||||
page() {
|
||||
this.loadPage()
|
||||
}
|
||||
this.loadPage();
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
markdownComponent: null,
|
||||
markdownComponent: null as any,
|
||||
};
|
||||
},
|
||||
async mounted() {
|
||||
this.loadPage()
|
||||
this.loadPage();
|
||||
},
|
||||
methods:{
|
||||
loadPage(){
|
||||
this.markdownComponent = null
|
||||
methods: {
|
||||
loadPage() {
|
||||
this.markdownComponent = null;
|
||||
this.markdownComponent = markRaw(defineAsyncComponent(() => import(`$/${this.page?.toLowerCase()}.md`)));
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.markdown-container {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
color: #555;
|
||||
background-color: #f8f8f8;
|
||||
border: 2px solid gray;
|
||||
padding: 20px;
|
||||
border-radius: 5px;
|
||||
height: 100%
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.markdown-container h1 {
|
||||
|
@ -84,4 +84,4 @@ export default defineComponent({
|
|||
list-style-type: disc;
|
||||
margin-left: 20px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue