Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit c5cb976

Browse files
authored
Merge pull request #495 from FlowzPlatform/issue-472
file validation
2 parents 2602221 + 67be527 commit c5cb976

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

client/src/components/SchemaSubForm.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<div class="" v-for="(val, i) in schemainstance.data[index][field.name]">
129129
<Row>
130130
<Col :span="23"> <a :href="val" class="list-group-item" target="_blank" style="color:blue;padding:2px 2px;" >{{val}}</a></Col>
131-
<Col :span="1"><a href="#" style="color:red;float:right" @click="removeSection(i, schemainstance.data[index][field.name])">&#10005;&nbsp;</a></Col>
131+
<Col :span="1" v-if="i >= oldFiles"><a href="#" style="color:red;float:right" @click="removeSection(i, schemainstance.data[index][field.name])">&#10005;&nbsp;</a></Col>
132132
</Row>
133133
</div>
134134
</div>
@@ -200,7 +200,7 @@
200200
<div class="" v-for="(val, i) in schemainstance.data[index][field.name]">
201201
<Row>
202202
<Col :span="23"> <a :href="val" class="list-group-item" target="_blank" style="color:blue;padding:2px 2px;" >{{val}}</a></Col>
203-
<Col :span="1"><a href="#" style="color:red;float:right" @click="removeSection(i, schemainstance.data[index][field.name])">&#10005;&nbsp;</a></Col>
203+
<Col :span="1" v-if="i >= oldFiles"><a href="#" style="color:red;float:right" @click="removeSection(i, schemainstance.data[index][field.name])">&#10005;&nbsp;</a></Col>
204204
</Row>
205205
</div>
206206
</div>
@@ -245,7 +245,8 @@ export default {
245245
fileSize: 0,
246246
fileUploadProgress: 0,
247247
stratProgress: false,
248-
jumperLinks: []
248+
jumperLinks: [],
249+
oldFiles: 0
249250
}
250251
},
251252
components: {
@@ -511,6 +512,8 @@ export default {
511512
}
512513
},
513514
mounted () {
515+
console.log('--------------------------------', this.schemainstance.data[0].Fileattachment)
516+
this.oldFiles = this.schemainstance.data[0].Fileattachment.length
514517
},
515518
created () {}
516519
}

0 commit comments

Comments
 (0)