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

Commit

Permalink
fix(pack.move): avoid portability if partial unbundling (#1275)
Browse files Browse the repository at this point in the history
ref: UXCT-61
  • Loading branch information
Steffy29 authored and antleblanc committed Jan 31, 2019
1 parent e00aec9 commit 47292bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions client/app/telecom/pack/move/pack-move.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,14 @@ angular.module('managerApp').controller('PackMoveCtrl', function (
}
};

/**
* Check if can keep line number
* @returns {boolean}
*/
this.canKeepLineNumber = function () {
return this.offer.selected.portability.eligible && this.offer.selected.unbundling !== 'partial';
};

/**
* Check is a pending move is on-going
* @returns {Promise}
Expand Down
2 changes: 1 addition & 1 deletion client/app/telecom/pack/move/pack-move.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h2 class="widget-presentation-title" data-translate="pack_move_line_keep_number
data-address-loading="PackMove.packAdress.loading"
data-rio="PackMove.form.futureLandline.rio"
data-keep-line-number="PackMove.form.futureLandline.keepLineNumber"
data-can-keep-line-number="PackMove.offer.selected.portability.eligible"
data-can-keep-line-number="PackMove.canKeepLineNumber()"
data-line-number="{{PackMove.form.futureLandline.lineNumber}}">
</pack-move-address-future>
<!-- END: New Address -->
Expand Down

0 comments on commit 47292bf

Please sign in to comment.