Skip to content

Commit

Permalink
feat(account): reintegrate feat/manager-14875 (#14267)
Browse files Browse the repository at this point in the history
ref: MANAGER-16129
Signed-off-by: Maxime Bajeux <[email protected]>
  • Loading branch information
MaximeBajeux committed Dec 4, 2024
1 parent 9e50b80 commit 007650e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
isDisabled: '<',
supportLink: '<',
hubLink: '<',
isSupportWithExternalLinks: '<',
},
controller,
template,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ export const PRIVACY_LINKS = {
WE: 'https://www.ovhcloud.com/en-ie/terms-and-conditions/privacy-policy/',
};

export const SUPPORT_URL = 'https://help.ovhcloud.com/csm?id=csm_get_help';

export default {
DOCUMENT_TYPE,
DOCUMENT_LIST,
MAXIMUM_SIZE,
LEGAL_FORMS,
MAXIMUM_DOCUMENTS,
PRIVACY_LINKS,
SUPPORT_URL,
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TRACKING } from './constants';
import { TRACKING, SUPPORT_URL } from './constants';

export default /* @ngInject */ ($stateProvider) => {
$stateProvider.state('account.kyc-documents.documents', {
Expand All @@ -7,8 +7,15 @@ export default /* @ngInject */ ($stateProvider) => {
resolve: {
breadcrumb: /* @ngInject */ ($translate) =>
$translate.instant('kyc_documents_breadcrumb'),
supportLink: /* @ngInject */ (coreURLBuilder) =>
coreURLBuilder.buildURL('dedicated', '#/support/tickets'),
isSupportWithExternalLinks: /* @ngInject */ (coreConfig) =>
coreConfig.isRegion(['EU', 'CA']),
supportLink: /* @ngInject */ (
isSupportWithExternalLinks,
coreURLBuilder,
) =>
isSupportWithExternalLinks
? SUPPORT_URL
: coreURLBuilder.buildURL('dedicated', '#/support/tickets'),
},
atInternet: {
rename: TRACKING.DOCUMENTS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<a
data-ng-href="{{:: $ctrl.supportLink}}"
data-translate="document_dashboard_open_banner_link"
target="{{$ctrl.isSupportWithExternalLinks ? '_blank' : '_top'}}"
></a>
</oui-message>

Expand Down

0 comments on commit 007650e

Please sign in to comment.