mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 09:38:51 +02:00
added dialog information transfer
This commit is contained in:
@ -1,26 +1,24 @@
|
||||
<script lang="ts" setup>
|
||||
import { PropType } from "vue";
|
||||
import { inject } from "vue";
|
||||
import { Module } from "../model/module.ts";
|
||||
|
||||
const props = defineProps({
|
||||
module: {
|
||||
type: Object as PropType<Module>,
|
||||
required: true,
|
||||
},
|
||||
});
|
||||
const dialogRef = inject("dialogRef") as any;
|
||||
const module = dialogRef.value.data.module as Module;
|
||||
|
||||
console.debug(module);
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<h2>{{ props.module.name }}</h2>
|
||||
<h2>{{ module.name }}</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Course:</td>
|
||||
<td>{{ props.module.course }}</td>
|
||||
<td>{{ module.course }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ID:</td>
|
||||
<td>{{ props.module.id }}</td>
|
||||
<td>Termine:</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user