Skip to content

Commit

Permalink
Merge pull request #167 from cultuurnet/PPF-237-widgets-redirect
Browse files Browse the repository at this point in the history
PPF-237 widgets redirect
  • Loading branch information
LucWollants authored Dec 11, 2023
2 parents 4c78d45 + d790534 commit 31f0c69
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
);
}
Expand Down
12 changes: 7 additions & 5 deletions src/assets/config.json
Original file line number Diff line number Diff line change
@@ -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
}
1 change: 1 addition & 0 deletions src/assets/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
};
};

0 comments on commit 31f0c69

Please sign in to comment.