Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

Commit

Permalink
feat(bulk): added address validated before bulk action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémy DE CESARE committed Dec 14, 2017
1 parent bbd57c0 commit d42c09e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ angular.module("managerApp").controller("TelecomTelephonyLineRestrictionsCtrl",
});
});

self.applyLineChanges();
// reset initial values to be able to modify again the options
OvhApiTelephony.Line().Lexi().resetAllCache();
init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ <h1 data-translate="telephony_line_restrictions_title"></h1>
data-bulk-infos="LineRestrictionsCtrl.bulkDatas.infos"
data-filter-services="LineRestrictionsCtrl.filterServices"
data-get-bulk-params="LineRestrictionsCtrl.getBulkParams"
data-on-open="LineRestrictionsCtrl.applyLineChanges"
data-on-success="LineRestrictionsCtrl.onBulkSuccess"
data-on-error="LineRestrictionsCtrl.onBulkError">
</telephony-bulk-action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ angular.module("managerApp").controller("telephonyBulkActionCtrl", function ($q,
============================== */

self.onBulkActionBtnClick = function () {
if (self.onOpen && _.isFunction(self.onOpen())) {
self.onOpen()();
}
return $uibModal.open({
templateUrl: "components/telecom/telephony/bulkAction/modal/telephony-bulk-action-modal.html",
controller: "telephonyBulkActionModalCtrl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
ngDisabled: "=?",
bulkInfos: "<",
getBulkParams: "&",
onOpen: "&?",
onSuccess: "&?",
onError: "&?",
filterServices: "&?"
Expand Down

0 comments on commit d42c09e

Please sign in to comment.