Use storage save method in edit-actions directive

pull/3753/head
Alex Dik 9 years ago
parent b9a927dc52
commit 1555ec6b2d
  1. 5
      frontend/app/components/inplace-edit/directives/edit-actions-bar/edit-actions-bar.directive.js

@ -44,7 +44,8 @@ function editActionsBar() {
bindToController: true,
controllerAs: 'vm',
controller: function ($scope, I18n, EditableFieldsState, NotificationsService) {
controller: function ($scope, I18n, EditableFieldsState, inplaceEditMultiStorage) {
var vm = this;
angular.extend(vm, {
@ -53,7 +54,7 @@ function editActionsBar() {
},
save: function () {
EditableFieldsState.save().then(vm.onSave);
inplaceEditMultiStorage.save().then(vm.onSave);
},
cancel: function () {

Loading…
Cancel
Save