This commit is contained in:
Lucio Maranta
2019-10-21 16:47:17 +02:00
parent a8fe58dac6
commit da6687cff1
@@ -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)
}
}