|
@@ -24,7 +24,8 @@
|
|
|
:show-edit-button="false"
|
|
:show-edit-button="false"
|
|
|
:show-index-button="false"
|
|
:show-index-button="false"
|
|
|
:show-reload-button="false"
|
|
:show-reload-button="false"
|
|
|
- :before-load-input-data="beforeLoadInputData">
|
|
|
|
|
|
|
+ :before-load-input-data="beforeLoadInputData"
|
|
|
|
|
+ :after-load-input-data="afterLoadInputData">
|
|
|
<template #before-form-builder>
|
|
<template #before-form-builder>
|
|
|
<div class="session-title-and-time-row">
|
|
<div class="session-title-and-time-row">
|
|
|
<div class="item">
|
|
<div class="item">
|
|
@@ -376,6 +377,11 @@ export default {
|
|
|
this.getClassInfo(this.session.classroom)
|
|
this.getClassInfo(this.session.classroom)
|
|
|
this.entityLoading = false
|
|
this.entityLoading = false
|
|
|
},
|
|
},
|
|
|
|
|
+ afterLoadInputData (data) {
|
|
|
|
|
+ if (data.assignment_description === '') {
|
|
|
|
|
+ FormBuilderAssist.setAttributeByName(this.sessionInfoInputs, 'assignment_description', 'type', 'hidden')
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
getClassInfo (classroomId) {
|
|
getClassInfo (classroomId) {
|
|
|
this.classroom.loading = true
|
|
this.classroom.loading = true
|
|
|
APIGateway.classroom.get(classroomId)
|
|
APIGateway.classroom.get(classroomId)
|