style: format
This commit is contained in:
parent
c47f84ed70
commit
dd08738f99
2 changed files with 7 additions and 9 deletions
|
@ -84,15 +84,14 @@
|
|||
students: [],
|
||||
joinRequests: [],
|
||||
};
|
||||
const classResponse : ClassResponse = await classController.createClass(classDto);
|
||||
const createdClass : ClassDTO = classResponse.cls;
|
||||
const classResponse: ClassResponse = await classController.createClass(classDto);
|
||||
const createdClass: ClassDTO = classResponse.cls;
|
||||
code.value = createdClass.id;
|
||||
dialog.value = true;
|
||||
showSnackbar(t("created"), "success");
|
||||
|
||||
// reload the table with classes
|
||||
await refetch();
|
||||
|
||||
} catch (e: any) {
|
||||
showSnackbar(t("wrong"), "error");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue