Skip to content

Commit 5859034

Browse files
committed
Apply SLPS changes from Sprint 9
1 parent 5aefee9 commit 5859034

File tree

2 files changed

+31
-16
lines changed

2 files changed

+31
-16
lines changed

css/00-central-package.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ prm-service-button .md-button.button-as-link:hover:not([disabled]),
22792279
prm-location-items md-list prm-service-button .md-button.button-as-link#rapidoOffer prm-service-physical-best-offer .get_it_btn_digital,
22802280
prm-service-physical-best-offer .get_it_btn_physical,
22812281
button#get_it_btn_digital,
2282-
span.digiButton {
2282+
prm-service-button>button>span {
22832283
color: #14413c !important;
22842284
}
22852285

js/modules/prm-service-physical-best-offer-after/slsp-rapido-digital-offer/slsp-rapido-digital-offer.controller.js

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,48 @@ export class slspRapidoDigitalOfferController {
77
}
88

99
$onInit() {
10-
this.$timeout(() => {
11-
this.parentCtrl = this.afterCtrl.parentCtrl
10+
this.parentCtrl = this.afterCtrl.parentCtrl
11+
this.isDone = false
12+
}
13+
14+
$doCheck() {
15+
if (this.isDone) return
16+
// tilesplaceholderactive is true until the tile is loaded, also by reselecting pickupinfo
17+
if (this.parentCtrl.tilesplaceholderactive == true) return
1218

13-
/* costs per page */
14-
if (this.parentCtrl.isdigitaloffer === true) {
15-
this.rapidoCosts = rapidoCosts
19+
/* costs per page */
20+
if (this.parentCtrl.isdigitaloffer === true) {
21+
this.$timeout(() => {
1622
let rapidoCosts = document.querySelectorAll('div[ng-if="$ctrl.digitalTileVisible"] .patron_cost.last_line')
1723
let htmlRc = `<div class="rapidoCosts" translate="customized.rapido.digi"></div>`
1824
angular.element(rapidoCosts).after(this.$compile(htmlRc)(this.$scope))
19-
}
25+
}, 20)
26+
}
2027

21-
/* reservation button */
22-
if (this.parentCtrl.isdigitaloffer !== true && this.parentCtrl.bestoffer !== undefined && this.parentCtrl.bestoffer.unavailableInAllMembersPod === true && this.parentCtrl.bestoffer.unavailableResource === true) {
23-
this.reservation = reservation
28+
/* reservation button */
29+
if (this.parentCtrl.isdigitaloffer !== true && this.parentCtrl.bestoffer !== undefined && this.parentCtrl.bestoffer.unavailableInAllMembersPod === true && this.parentCtrl.bestoffer.unavailableResource === true) {
30+
this.$timeout(() => {
2431
let reservation = document.querySelectorAll('prm-service-physical-best-offer .get_it_btn_physical > span')
2532
let htmlR1 = `<div class="reservationButton" translate="customized.rapido.reservation"></div>`
33+
2634
angular.element(reservation).after(this.$compile(htmlR1)(this.$scope)).addClass('noOffer')
27-
}
35+
}, 20)
36+
}
37+
38+
/* reading room POD */
39+
if (this.parentCtrl.isdigitaloffer !== true && this.parentCtrl.bestoffer !== undefined && this.parentCtrl.bestoffer.podId == '452167832730000041' ||
40+
this.parentCtrl.isdigitaloffer !== true && this.parentCtrl.bestoffer !== undefined && this.parentCtrl.bestoffer.podId == '452167827350000041' ||
41+
this.parentCtrl.isdigitaloffer !== true && this.parentCtrl.bestoffer !== undefined && this.parentCtrl.bestoffer.podId == '452497325370000041' ||
42+
this.parentCtrl.isdigitaloffer !== true && this.parentCtrl.bestoffer !== undefined && this.parentCtrl.bestoffer.podId == '452497929300000041' ||
43+
this.parentCtrl.isdigitaloffer !== true && this.parentCtrl.bestoffer !== undefined && this.parentCtrl.bestoffer.podId == '452084165700000041') {
2844

29-
/* reading room POD */
30-
if (this.parentCtrl.isdigitaloffer !== true && this.parentCtrl.bestoffer !== undefined && this.parentCtrl.bestoffer.podId == '377067383680000041') {
31-
this.readingRoomPod = readingRoomPod
45+
this.$timeout(() => {
3246
let readingRoomPod = document.querySelectorAll('div[ng-if="$ctrl.physicalTileVisible"] prm-service-physical-best-offer .keep_for span')
3347
let htmlPD = `<span class="reading-Room-Pod" translate="customized.rapido.readingroom"></span>`
3448
angular.element(readingRoomPod).after(this.$compile(htmlPD)(this.$scope)).addClass('pod')
35-
}
36-
}, 2500)
49+
}, 20)
50+
}
51+
this.isDone = true
3752
}
3853
}
3954

0 commit comments

Comments
 (0)