diff --git a/src/app/widget-builder/components/page-list/page-list.component.ts b/src/app/widget-builder/components/page-list/page-list.component.ts index 782a9b9..0aa7e7f 100644 --- a/src/app/widget-builder/components/page-list/page-list.component.ts +++ b/src/app/widget-builder/components/page-list/page-list.component.ts @@ -319,8 +319,12 @@ export class PageListComponent implements OnInit { this.topbarService.setBackButton( new BackButton( BackButton.TYPE_LINK, - 'TOPBAR_BACK_BUTTON_LABEL_PROJECTAANVRAGEN', - environment.projectaanvraagDashboardUrl + environment.platformIsLive + ? 'TOPBAR_BACK_BUTTON_LABEL_PUBLIQ_PLATFORM' + : 'TOPBAR_BACK_BUTTON_LABEL_PROJECTAANVRAGEN', + environment.platformIsLive + ? environment.platformUrl + : environment.projectaanvraagDashboardUrl ) ); } diff --git a/src/assets/config.json b/src/assets/config.json index c56efd8..3f2608b 100644 --- a/src/assets/config.json +++ b/src/assets/config.json @@ -1,10 +1,12 @@ { "production": true, - "apiUrl": "https://projectaanvraag-api.uitdatabank.dev/", + "apiUrl": "http://host.docker.internal/", "widgetApi_currentVersion": "3", - "widgetApi_embedUrl_current": "https://projectaanvraag-api.uitdatabank.dev/widgets/layout/:page_id.js", - "widgetApi_embedUrl_forceCurrent": "https://projectaanvraag-api.uitdatabank.dev/widgets/layout/v3/:page_id.js", - "projectaanvraagDashboardUrl": "https://projectaanvraag.uitdatabank.dev/", + "widgetApi_embedUrl_current": "http://host.docker.internal/widgets/layout/:page_id.js", + "widgetApi_embedUrl_forceCurrent": "http://host.docker.internal/widgets/layout/v3/:page_id.js", + "projectaanvraagDashboardUrl": "http://host.docker.internal:9999", + "platformUrl": "http://localhost:81/nl/integraties", "zendeskUrl": "https://www.zendesk.com", - "publishers": "BRUZZ,Gazet van Antwerpen,Indiestyle,UiTX,UiT,UiTMetVlieg,NXTPOP" + "publishers": "BRUZZ,Gazet van Antwerpen,Indiestyle,UiTX,UiT,UiTMetVlieg,NXTPOP", + "platformIsLive": true } diff --git a/src/assets/i18n/nl.json b/src/assets/i18n/nl.json index 77ed8f3..465930c 100644 --- a/src/assets/i18n/nl.json +++ b/src/assets/i18n/nl.json @@ -275,6 +275,7 @@ "TITLE_WIDGET_PAGE_LIST_NEW_VERSION": "Nieuwe versie", "LOGOUT_FAILED_NOTIFICATION": "Afmelden niet gelukt. Probeer het later opnieuw.", "TOPBAR_USER_MENU_BUTTON_LOGOUT": "Afmelden", + "TOPBAR_BACK_BUTTON_LABEL_PUBLIQ_PLATFORM": "publiq platform", "TOPBAR_BACK_BUTTON_LABEL_PROJECTAANVRAGEN": "Projectaanvragen", "TOPBAR_PUBLISH_BUTTON": "Publiceren", "TOPBAR_STYLES_BUTTON": "Stijlen", diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 6950587..6c57a50 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -15,8 +15,10 @@ type Environment = { widgetApi_embedUrl_current: string; widgetApi_embedUrl_forceCurrent: string; projectaanvraagDashboardUrl: string; + platformUrl: string; zendeskUrl: string; publishers: string; + platformIsLive: boolean; }; export let environment: Environment; @@ -31,7 +33,9 @@ export const setEnvironmentToConfig = async () => { widgetApi_embedUrl_current: config.widgetApi_embedUrl_current, widgetApi_embedUrl_forceCurrent: config.widgetApi_embedUrl_forceCurrent, projectaanvraagDashboardUrl: config.projectaanvraagDashboardUrl, + platformUrl: config.platformUrl, zendeskUrl: config.zendeskUrl, publishers: config.publishers, + platformIsLive: config.platformIsLive, }; };