Skip to content

Commit a2a85be

Browse files
committed
fix: temporary fix for static
1 parent 05096f0 commit a2a85be

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export default {
454454
}
455455
},
456456
async computeVisibilityCondition(cond, index) {
457-
console.log('computeVisibilityCondition', cond, index);
457+
// console.log('computeVisibilityCondition', cond, index);
458458
if (_.isObject(cond)) {
459459
const request = {
460460
method: cond.method,

src/components/InputSelector/InputSelector.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
:constraints="valueConstraints"
197197
:selected_language="selected_language"
198198
:result="true"
199+
:input="title"
199200
:init="init" v-on:valueChanged="sendData"/>
200201
</div>
201202

@@ -215,12 +216,14 @@
215216
:init="init" v-on:valueChanged="sendData"/>
216217
</div>
217218

219+
<!--
218220
<div v-else-if="inputType === 'static'">
219221
<Static
220222
:constraints="valueConstraints"
221223
:selected_language="selected_language"
222224
:init="init" v-on:valueChanged="sendData"/>
223225
</div>
226+
-->
224227

225228
<!-- if we don't have a component built for this type, then show an error -->
226229
<div v-else>
@@ -261,7 +264,7 @@ import SelectInput from '../Inputs/SelectInput';
261264
import StaticReadOnly from '../Inputs/StaticReadOnly';
262265
import SaveData from '../Inputs/SaveData/SaveData';
263266
import StudySign from '../StudySign/StudySign';
264-
import Static from '../Inputs/Static';
267+
// import Static from '../Inputs/Static';
265268
import EmailInput from '../Inputs/EmailInput';
266269
import ParticipantId from '../Inputs/ParticipantId/ParticipantId';
267270
@@ -325,7 +328,7 @@ export default {
325328
TimeRange,
326329
SelectInput,
327330
StaticReadOnly,
328-
Static,
331+
// Static,
329332
},
330333
data() {
331334
return {

src/components/Inputs/StaticReadOnly/StaticReadOnly.vue

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<template>
22
<div class="staticReadOnly">
3-
<div v-if="input">
4-
<h4> {{ input }}</h4>
5-
<br>
6-
<b-btn @click="onSubmit"> Done </b-btn>
3+
<div v-if="true">
4+
<b-btn @click="onSubmit"> Done reading </b-btn>
75
</div>
86
<div v-else>
97
<b-alert show>
@@ -24,9 +22,7 @@ export default {
2422
methods: {
2523
onSubmit(e) {
2624
e.preventDefault();
27-
if (this.input) {
28-
this.$emit('valueChanged', this.input);
29-
}
25+
this.$emit('valueChanged', this.input);
3026
},
3127
},
3228
data() {

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
githubSrc: 'https://raw.githubusercontent.com/ReproNim/demo-protocol/master/DemoProtocol/DemoProtocol_schema',
2+
githubSrc: 'https://raw.githubusercontent.com/ReproNim/demo-protocol/tst/static/DemoProtocol/DemoProtocol_schema',
33
startButton: {
44
"en": 'Join',
55
"es": 'Participar'

0 commit comments

Comments
 (0)