Skip to content

Commit

Permalink
Formio url issue fixed on form object (#296)
Browse files Browse the repository at this point in the history
* fixed form related issue

* Update package.json
  • Loading branch information
shuhaib-aot authored Jan 16, 2024
1 parent 6a5a1da commit 2bb54ab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion camunda-formio-tasklist-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "camunda-formio-tasklist-vue",
"version": "1.1.6-rc",
"version": "1.1.7-rc",
"description": "Vue components to integrate formsflow.ai",
"private": false,
"main": "./dist/camunda-formio-tasklist-vue.common.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</div>
<div class="d-flex align-items-center">
<input
class=" form-control"
class="me-2 form-control"
v-model="searchValue"
type="text"
@keypress.enter="handleSearch"
Expand Down Expand Up @@ -182,6 +182,7 @@
<Form
v-if="Object.keys(formData).length > 0"
ref="formio-form"
:src="currentFormUrl"
:form="formData"
submission=""
options=""
Expand Down Expand Up @@ -249,6 +250,7 @@ export default class FormListModal extends Mixins(BaseMixin) {
private sortBy: string="formName" ;
private formError: string="";
public submissionError: string= "";
public currentFormUrl: string= "";
public isSearch: boolean= false;
private isFormloading: boolean=true;
public formData = {
Expand Down Expand Up @@ -328,13 +330,15 @@ export default class FormListModal extends Mixins(BaseMixin) {
};
this.formId = val;
const url = this.formioUrl.concat(val);
axios.get(url, {
headers:{
"x-jwt-token": localStorage.getItem("formioToken")
}
}).then((res)=>{
if(res.data){
this.formData = res.data;
this.currentFormUrl = url;
}else{
this.formData = {
};
Expand Down Expand Up @@ -426,10 +430,7 @@ export default class FormListModal extends Mixins(BaseMixin) {
}
</script>
<style>
input{
margin-right: 10px;
float: right;
}
.formspinner{
width: 3rem;
height: 3rem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -698,3 +698,11 @@
fill: rgb(56,89,138) !important;
}
}


.formio-form,
.formio-builder-form {
.form-group {
margin-bottom: 1rem;
}
}

0 comments on commit 2bb54ab

Please sign in to comment.