Merged in feature/optional-title-subtitle (pull request #8)
Hide Task checkbox in roomentry form Approved-by: Ramon Wenger <ramon.wenger@iterativ.ch>
This commit is contained in:
commit
4e6497f74a
|
|
@ -5,7 +5,8 @@
|
||||||
:placeholder="titlePlaceholder"
|
:placeholder="titlePlaceholder"
|
||||||
:value="localContentBlock.title"
|
:value="localContentBlock.title"
|
||||||
:error="error"></modal-input>
|
:error="error"></modal-input>
|
||||||
<checkbox :checked="localContentBlock.isAssignment"
|
<checkbox v-if="showTaskSelection"
|
||||||
|
:checked="localContentBlock.isAssignment"
|
||||||
:item="localContentBlock"
|
:item="localContentBlock"
|
||||||
:label="'Aufgabe'"
|
:label="'Aufgabe'"
|
||||||
@input="setContentBlockType"
|
@input="setContentBlockType"
|
||||||
|
|
@ -81,6 +82,10 @@
|
||||||
'block-type': {
|
'block-type': {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'ContentBlock'
|
default: 'ContentBlock'
|
||||||
|
},
|
||||||
|
showTaskSelection: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<contents-form
|
<contents-form
|
||||||
:content-block="contentBlock"
|
:content-block="contentBlock"
|
||||||
|
v-bind:showTaskSelection="true"
|
||||||
@save="saveContentBlock"
|
@save="saveContentBlock"
|
||||||
@hide="hideModal"
|
@hide="hideModal"
|
||||||
></contents-form>
|
></contents-form>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<contents-form
|
<contents-form
|
||||||
:content-block="contentBlock"
|
:content-block="contentBlock"
|
||||||
|
v-bind:showTaskSelection="true"
|
||||||
@save="saveContentBlock"
|
@save="saveContentBlock"
|
||||||
@hide="hideModal"
|
@hide="hideModal"
|
||||||
></contents-form>
|
></contents-form>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<contents-form
|
<contents-form
|
||||||
:content-block="entry"
|
:content-block="entry"
|
||||||
|
v-bind:showTaskSelection="false"
|
||||||
@save="saveEntry"
|
@save="saveEntry"
|
||||||
block-type="RoomEntry"
|
block-type="RoomEntry"
|
||||||
@hide="hideModal"
|
@hide="hideModal"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue