Skip to content

Commit

Permalink
feat: add message to inform user about temporary pack creation
Browse files Browse the repository at this point in the history
ref: UXCT-631

Signed-off-by: Stephanie Moallic <[email protected]>
  • Loading branch information
Stephanie Moallic committed Nov 28, 2024
1 parent 217c876 commit b398e92
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,17 @@ <h3 data-translate="telecom_pack_migration_doing"></h3>
</div>
</div>

<oui-message
type="info"
data-ng-if="$ctrl.process.selectedOffer.changeTechno"
>
<p
class="mb-0"
data-ng-repeat="line in [1,2,3] track by $index"
data-translate="{{ 'telecom_pack_migration_confirm_temporary_pack_creation_line_' + line}}"
></p>
</oui-message>

<div class="widget-presentation" data-ng-if="!$ctrl.loading.migrate">
<h2
class="widget-presentation-title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,15 @@ export default class TelecomPackMigrationOffersCtrl {
}
});

// Update meeting flag if xDSL => fiber offer
// Update meeting flag and techno change if xDSL => fiber offer
if (
this.process.pack.offerDescription
.toLowerCase()
.includes(this.OFFER_XDSL) &&
selectedOffer.offerName.toLowerCase().includes(this.OFFER_FIBER)
) {
set(selectedOffer, 'needMeeting', true);
set(selectedOffer, 'changeTechno', true);
}

this.loading.init = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,8 @@
"telecom_pack_migration_ont_shipping_explain": "L'ONT (Optical Network Termination) est un équipement réseau qui permet de raccorder votre modem à la PTO.",
"telecom_pack_migration_ont_shipping_contact": "Contact de livraison",
"telecom_pack_migration_ont_shipping_confirm": "Confirmer ce contact de livraison",
"telecom_pack_migration_ont_shipping_addresses_error": "Une erreur est survenue lors du chargement de vos contacts. {{error}}"
"telecom_pack_migration_ont_shipping_addresses_error": "Une erreur est survenue lors du chargement de vos contacts. {{error}}",
"telecom_pack_migration_confirm_temporary_pack_creation_line_1": "Durant la transition vers votre nouvelle offre, un pack temporaire sera créé pour assurer la continuité du service",
"telecom_pack_migration_confirm_temporary_pack_creation_line_2": "Ce pack sera automatiquement supprimé une fois votre commande Fibre finalisée.",
"telecom_pack_migration_confirm_temporary_pack_creation_line_3": "Aucune action de modification ou de suppression de votre part n'est nécessaire : le passage vers votre accès Fibre se fera de manière entièrement automatisée."
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ export default class PackMoveCtrl {
this.offer.selected.eligibilityReference = this.eligibilityReference;
this.offer.selected.product = this.offersEligible[0].product;
this.offer.selected.isOfferFTTH = this.isOfferFTTH;

// Check if techno changed (from xDSL to Fiber)
this.offer.selected.technoChange =
!this.offer.current.isFTTH && this.isOfferFTTH;

if (this.isOfferFTTH) {
// Retrieve multi OTP flag
const selectedLineOffer = this.selectedLine.offers.filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,14 @@ <h3 data-translate="pack_move_doing"></h3>
</div>
</div>

<oui-message type="info" data-ng-if="$ctrl.offer.selected.technoChange">
<p
class="mb-0"
data-ng-repeat="line in [1,2,3] track by $index"
data-translate="{{ 'pack_move_confirm_temporary_pack_creation_line_' + line}}"
></p>
</oui-message>

<div class="widget-presentation">
<h2
class="widget-presentation-title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,8 @@
"pack_move_ont_shipping_explain": "L'ONT (Optical Network Termination) est un équipement réseau qui permet de raccorder votre modem à la PTO.",
"pack_move_ont_shipping_contact": "Contact de livraison",
"pack_move_ont_shipping_confirm": "Confirmer ce contact de livraison",
"pack_move_ont_shipping_addresses_error": "Une erreur est survenue lors du chargement de vos contacts. {{error}}"
"pack_move_ont_shipping_addresses_error": "Une erreur est survenue lors du chargement de vos contacts. {{error}}",
"pack_move_confirm_temporary_pack_creation_line_1": "Durant la transition vers votre nouvelle offre, un pack temporaire sera créé pour assurer la continuité du service.",
"pack_move_confirm_temporary_pack_creation_line_2": "Ce pack sera automatiquement supprimé une fois votre commande Fibre finalisée.",
"pack_move_confirm_temporary_pack_creation_line_3": "Aucune action de modification ou de suppression de votre part n'est nécessaire : le passage vers votre accès Fibre se fera de manière entièrement automatisée."
}

0 comments on commit b398e92

Please sign in to comment.