Skip to content

Commit

Permalink
Callinfo.call.extra -> notes
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Jan 25, 2022
1 parent 8106ce6 commit fcedcda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tomatic/static/components/callinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CallInfo.call = {
'phone': "", // phone of the currently selected call registry
'date': "", // isodate of the last unbinded search or the currently selected call registry
'topic': "", // annotated topic for the call
'extra': "", // annotated comments for the call
'notes': "", // annotated comments for the call
'log_call_reasons': [],
};
CallInfo.call_reasons = {
Expand Down Expand Up @@ -74,7 +74,7 @@ var postAnnotation = function(annotation) {
else {
console.debug("INFO case saved")
CallInfo.savingAnnotation = false;
CallInfo.call.extra = "";
CallInfo.call.notes = "";
CallInfo.call.date = "";
}
}, function(error) {
Expand Down Expand Up @@ -104,7 +104,7 @@ CallInfo.saveCallLog = function(claim) {
"partner": partner_code,
"contract": contract_number,
"reason": CallInfo.call.topic,
"notes": CallInfo.call.extra,
"notes": CallInfo.call.notes,
"claimsection": (
!isClaim ? "" : (
claim.tag ? claim.tag : (
Expand All @@ -118,7 +118,7 @@ CallInfo.clear = function() {
CallInfo.call.phone = "";
CallInfo.call.log_call_reasons = [];
CallInfo.call.topic = "";
CallInfo.call.extra = "";
CallInfo.call.notes = "";
CallInfo.currentPerson = 0;
CallInfo.currentContract = 0;
CallInfo.savingAnnotation = false;
Expand Down
6 changes: 3 additions & 3 deletions tomatic/static/components/questionnaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ Questionnaire.openCaseAnnotationDialog = function() {
floatingLabel: true,
rows: 5,
dense: true,
value: CallInfo.call.extra,
value: CallInfo.call.notes,
onChange: function(params) {
CallInfo.call.extra = params.value
CallInfo.call.notes = params.value
},
disabled: CallInfo.savingAnnotation || CallInfo.call.date === "",
}),
Expand Down Expand Up @@ -288,7 +288,7 @@ Questionnaire.openCaseAnnotationDialog = function() {
disabled: (
CallInfo.savingAnnotation ||
CallInfo.call.topic === "" ||
CallInfo.call.extra === "" ||
CallInfo.call.notes === "" ||
CallInfo.call.date === "" ||
Login.myName() === ""
),
Expand Down

0 comments on commit fcedcda

Please sign in to comment.