Hide Task checkbox in roomentry form
This commit is contained in:
parent
aa85c152dd
commit
e832f60cfb
|
|
@ -5,7 +5,8 @@
|
|||
:placeholder="titlePlaceholder"
|
||||
:value="localContentBlock.title"
|
||||
:error="error"></modal-input>
|
||||
<checkbox :checked="localContentBlock.isAssignment"
|
||||
<checkbox v-if="showTaskSelection"
|
||||
:checked="localContentBlock.isAssignment"
|
||||
:item="localContentBlock"
|
||||
:label="'Aufgabe'"
|
||||
@input="setContentBlockType"
|
||||
|
|
@ -81,6 +82,10 @@
|
|||
'block-type': {
|
||||
type: String,
|
||||
default: 'ContentBlock'
|
||||
},
|
||||
showTaskSelection: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<contents-form
|
||||
:content-block="contentBlock"
|
||||
v-bind:showTaskSelection="true"
|
||||
@save="saveContentBlock"
|
||||
@hide="hideModal"
|
||||
></contents-form>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<contents-form
|
||||
:content-block="contentBlock"
|
||||
v-bind:showTaskSelection="true"
|
||||
@save="saveContentBlock"
|
||||
@hide="hideModal"
|
||||
></contents-form>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<contents-form
|
||||
:content-block="entry"
|
||||
v-bind:showTaskSelection="false"
|
||||
@save="saveEntry"
|
||||
block-type="RoomEntry"
|
||||
@hide="hideModal"
|
||||
|
|
|
|||
Loading…
Reference in New Issue