@@ -16,7 +16,7 @@ export default class ManagerNavbarService {
1616 CORE_REDIRECT_URLS ,
1717 SessionService ,
1818 ssoAuthentication ,
19- TARGET ,
19+ coreConfig ,
2020 TranslateService ,
2121 CORE_URLS ,
2222 ) {
@@ -31,7 +31,7 @@ export default class ManagerNavbarService {
3131
3232 this . sessionService = SessionService ;
3333 this . ssoAuthentication = ssoAuthentication ;
34- this . TARGET = TARGET ;
34+ this . coreConfig = coreConfig ;
3535 this . translateService = TranslateService ;
3636 this . URLS = CORE_URLS ;
3737 }
@@ -86,7 +86,7 @@ export default class ManagerNavbarService {
8686 } ) ;
8787
8888 // Telephony (External)
89- if ( this . TARGET !== 'US' ) {
89+ if ( this . coreConfig . getRegion ( ) !== 'US' ) {
9090 assistanceMenu . push ( {
9191 title : this . $translate . instant ( 'navbar_support_telephony_contact' ) ,
9292 url : this . URLS . support_contact [ locale ] || this . URLS . support_contact . FR ,
@@ -145,11 +145,11 @@ export default class ManagerNavbarService {
145145 title : this . $translate . instant ( 'navbar_account_security' ) ,
146146 url : this . REDIRECT_URLS . userSecurity ,
147147 } ,
148- ( this . TARGET === 'EU' || this . TARGET === 'CA' ) && {
148+ ( this . coreConfig . getRegion ( ) === 'EU' || this . coreConfig . getRegion ( ) === 'CA' ) && {
149149 title : this . $translate . instant ( 'navbar_account_emails' ) ,
150150 url : this . REDIRECT_URLS . userEmails ,
151151 } ,
152- ( this . TARGET === 'EU' ) && {
152+ ( this . coreConfig . getRegion ( ) === 'EU' ) && {
153153 title : this . $translate . instant ( 'navbar_account_subscriptions' ) ,
154154 url : this . REDIRECT_URLS . userSubscriptions ,
155155 } , {
@@ -176,7 +176,7 @@ export default class ManagerNavbarService {
176176 } ,
177177
178178 // Services
179- ( this . TARGET === 'EU' || this . TARGET === 'CA' ) && ( ! currentUser . isEnterprise ? {
179+ ( this . coreConfig . getRegion ( ) === 'EU' || this . coreConfig . getRegion ( ) === 'CA' ) && ( ! currentUser . isEnterprise ? {
180180 name : 'user.services' ,
181181 title : this . $translate . instant ( 'navbar_renew' ) ,
182182 url : this . REDIRECT_URLS . services ,
@@ -201,18 +201,18 @@ export default class ManagerNavbarService {
201201 title : this . $translate . instant ( 'navbar_means_mean' ) ,
202202 url : this . REDIRECT_URLS . paymentMeans ,
203203 } ,
204- ( this . TARGET === 'EU' || this . TARGET === 'CA' ) && {
204+ ( this . coreConfig . getRegion ( ) === 'EU' || this . coreConfig . getRegion ( ) === 'CA' ) && {
205205 title : this . $translate . instant ( 'navbar_means_ovhaccount' ) ,
206206 url : this . REDIRECT_URLS . ovhAccount ,
207207 } ,
208- ( this . TARGET === 'EU' || this . TARGET === 'CA' ) && {
208+ ( this . coreConfig . getRegion ( ) === 'EU' || this . coreConfig . getRegion ( ) === 'CA' ) && {
209209 title : this . $translate . instant ( 'navbar_means_vouchers' ) ,
210210 url : this . REDIRECT_URLS . billingVouchers ,
211211 } , {
212212 title : this . $translate . instant ( 'navbar_means_refunds' ) ,
213213 url : this . REDIRECT_URLS . billingRefunds ,
214214 } ,
215- ( this . TARGET === 'EU' ) && {
215+ ( this . coreConfig . getRegion ( ) === 'EU' ) && {
216216 title : this . $translate . instant ( 'navbar_means_fidelity' ) ,
217217 url : this . REDIRECT_URLS . billingFidelity ,
218218 } , {
@@ -222,13 +222,13 @@ export default class ManagerNavbarService {
222222 } ,
223223
224224 // Orders
225- ( ! currentUser . isEnterprise && this . TARGET === 'EU' && currentUser . ovhSubsidiary === 'FR' ) && {
225+ ( ! currentUser . isEnterprise && this . coreConfig . getRegion ( ) === 'EU' && currentUser . ovhSubsidiary === 'FR' ) && {
226226 title : this . $translate . instant ( 'navbar_orders' ) ,
227227 url : this . REDIRECT_URLS . orders ,
228228 } ,
229229
230230 // Contacts
231- ( this . TARGET === 'EU' ) && {
231+ ( this . coreConfig . getRegion ( ) === 'EU' ) && {
232232 title : this . $translate . instant ( 'navbar_contacts' ) ,
233233 url : this . REDIRECT_URLS . contacts ,
234234 } ,
@@ -277,7 +277,7 @@ export default class ManagerNavbarService {
277277 }
278278
279279 getManagersNames ( ) {
280- switch ( this . TARGET ) {
280+ switch ( this . coreConfig . getRegion ( ) ) {
281281 case 'EU' : {
282282 if ( this . locale === 'FR' ) {
283283 return [ 'portal' , 'gamma' , 'partners' ] ;
0 commit comments