Skip to content

Commit

Permalink
Added option to pass custom source
Browse files Browse the repository at this point in the history
  • Loading branch information
mverma16 committed Mar 8, 2022
1 parent 305cec4 commit 38bccdb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion vueapp/public/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ const config = {
"theme" : "navbar-light bg-light",
"color" : "#40A6D7",
"defaultRequester": 0, //Set ID of user if you want to use particular user for ticket requester else 0 to allow users to create new users
"default_print":true //Tell to print the ticket number automatically or not
"default_print":true, //Tell to print the ticket number automatically or not
"custom_source":null
}
2 changes: 1 addition & 1 deletion vueapp/public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vueapp/public/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vueapp/resources/assets/js/mixins/faveoFormCommons.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export const faveoFormCommons = {

_formData.append('g-recaptcha-response', this.getRecaptchaKey);

if(config.custom_source) {
_formData.append('source_id', config.custom_source);
}

if (this.getEditorAttachments.length) {
_formData.append('attachments', JSON.stringify(this.getEditorAttachments))
}
Expand Down

0 comments on commit 38bccdb

Please sign in to comment.