From da6687cff13d93e3eceac76330bcfdf370b8897b Mon Sep 17 00:00:00 2001 From: Lucio Maranta Date: Mon, 21 Oct 2019 16:47:17 +0200 Subject: [PATCH] WIP --- .../app_modules/machine/components/contact-info-dialog.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Step/wwwroot/src/app_modules/machine/components/contact-info-dialog.ts b/Step/wwwroot/src/app_modules/machine/components/contact-info-dialog.ts index ec52b261..61373726 100644 --- a/Step/wwwroot/src/app_modules/machine/components/contact-info-dialog.ts +++ b/Step/wwwroot/src/app_modules/machine/components/contact-info-dialog.ts @@ -4,6 +4,8 @@ import { machineService, ContactConfigurationModel, ContactModel } from "src/ser import { Factory, messageService, awaiter } from "src/_base"; import Component from "vue-class-component"; +declare var cmsClient: any; + @Component({ components: { modal: Modal } }) export default class ContactInfoDialog extends Vue { public contactInfo: ContactModel = { @@ -30,6 +32,7 @@ export default class ContactInfoDialog extends Vue { email: "" }; + public webSiteUrl: string = "" async beforeMount() { @@ -38,6 +41,7 @@ export default class ContactInfoDialog extends Vue { this.retrofitConfig = contact.retrofitConfig this.sparePartConfig = contact.sparePartConfig this.backOfficeConfig = contact.backOfficeConfig + this.webSiteUrl = contact.webSiteUrl messageService.subscribeToChannel("esc_pressed", args => { this.close(); }); @@ -51,5 +55,9 @@ export default class ContactInfoDialog extends Vue { messageService.deleteChannel("esc_pressed"); ModalHelper.HideModal(); } + + openContactPage() { + cmsClient.openExternalBrowser(this.webSiteUrl) + } }