diff --git a/client/claim/src/action/index.html b/client/claim/src/action/index.html
index 6c72fae9a..538588c1d 100644
--- a/client/claim/src/action/index.html
+++ b/client/claim/src/action/index.html
@@ -27,6 +27,16 @@
ng-click="$ctrl.showLastTickets($event)"
vn-tooltip="Imports ticket lines">
+
+
diff --git a/client/claim/src/action/index.js b/client/claim/src/action/index.js
index d7966ed9e..07778b91d 100644
--- a/client/claim/src/action/index.js
+++ b/client/claim/src/action/index.js
@@ -145,6 +145,14 @@ class Controller {
this.$.descriptor.parent = event.target;
this.$.descriptor.show();
}
+
+ saveResponsibility() {
+ let query = `/claim/api/Claims/updateClaim`;
+
+ this.$http.post(query, {responsibility: this.claim.responsibility}).then(res => {
+ this.vnApp.showSuccess(this.$translate.instant('Data saved!'));
+ });
+ }
}
Controller.$inject = ['$stateParams', '$scope', '$http', '$translate', 'vnApp'];
diff --git a/client/claim/src/basic-data/index.html b/client/claim/src/basic-data/index.html
index faf5ca31c..60ef7f677 100644
--- a/client/claim/src/basic-data/index.html
+++ b/client/claim/src/basic-data/index.html
@@ -52,15 +52,6 @@
field="$ctrl.claim.isChargedToMana"
vn-acl="salesAssistant">
-
-
diff --git a/client/claim/src/summary/index.html b/client/claim/src/summary/index.html
index 40ba8ed2b..18cb23d84 100644
--- a/client/claim/src/summary/index.html
+++ b/client/claim/src/summary/index.html
@@ -30,12 +30,12 @@
+ max="5"
+ min="1"
+ step="1"
+ vn-acl="salesAssistant">
diff --git a/client/core/src/components/input-range/index.js b/client/core/src/components/input-range/index.js
index 4b102a7e2..e24bb1a08 100644
--- a/client/core/src/components/input-range/index.js
+++ b/client/core/src/components/input-range/index.js
@@ -10,6 +10,8 @@ export default class inputRange extends Input {
this.mdlElement.addEventListener('change', () => {
this._value = this.input.value;
this.$.$applyAsync();
+ if (this._value && this.onChange)
+ this.onChange();
});
}
@@ -71,6 +73,7 @@ ngModule.component('vnInputRange', {
max: '',
step: '',
value: '=',
- model: '='
+ model: '=',
+ onChange: '&'
}
});