Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formio url issue fixed on form object #296

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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 @@ -298,7 +300,7 @@
this.totalrows=response.data.totalCount;
this.isFormloading=false;
}).catch(err=>{
console.log(err);

Check warning on line 303 in camunda-formio-tasklist-vue/src/components/form/FormListModal.vue

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement

Check warning on line 303 in camunda-formio-tasklist-vue/src/components/form/FormListModal.vue

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
this.isFormloading=false;
});
}
Expand Down Expand Up @@ -328,13 +330,15 @@
};
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 @@ -395,7 +399,7 @@
if(err.response?.data){
this.submissionError= err.response.data;
}
console.error(err);

Check warning on line 402 in camunda-formio-tasklist-vue/src/components/form/FormListModal.vue

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement

Check warning on line 402 in camunda-formio-tasklist-vue/src/components/form/FormListModal.vue

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
});


Expand Down Expand Up @@ -426,10 +430,7 @@
}
</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;
}
}
Loading