added dialog information transfer

This commit is contained in:
masterelmar
2023-10-17 00:04:10 +02:00
parent b9acdd3a34
commit 87b51fd6fe
4 changed files with 17 additions and 18 deletions

View File

@@ -38,10 +38,9 @@ const ModuleInformation = defineAsyncComponent(
);
//TODO add missing module prop informations for ModuleInformation.vue
const showInfo = () => {
function showInfo(module : Module) {
dialog.open(ModuleInformation, {
props: {
header: "Product List",
style: {
width: "50vw",
},
@@ -51,8 +50,11 @@ const showInfo = () => {
},
modal: true,
},
data: {
module: module,
},
});
};
}
const display = (module: Module) => module.name + " (" + module.course + ")";
@@ -106,7 +108,7 @@ function selectChange() {
rounded
outlined
aria-label="Information"
@click.stop="showInfo()"
@click.stop="showInfo(slotProps.option)"
></Button>
<DynamicDialog />
</div>