WIP
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user