+ main menu support

+ about info
This commit is contained in:
Taegus
2018-12-31 12:24:43 +01:00
parent ab0a7356d2
commit 430b7fba9f
6 changed files with 265 additions and 11 deletions

View File

@@ -64,6 +64,23 @@ class MainGUI {
});
}
showAboutDialog(infoData) {
$("#versionNumber").html(infoData.version);
// create and open the dialog
$("#dlgAboutInfo").iziModal();
$('#dlgAboutInfo').iziModal('open');
$("#urlOpenLicence, #urlOpenGitHub").off("click").on("click", function(even) {
event.preventDefault();
ipcRenderer.send('openURL', $(this).attr("href"));
});
$("#btnAboutInfoClose").off("click").on("click", function(even) {
$('#dlgAboutInfo').iziModal('close');
});
}
renderTemplate(template, data, container) {
var template = Handlebars.compile(ipcRenderer.sendSync('getTemplateContent', template));
@@ -84,6 +101,10 @@ class MainGUI {
}
}
ipcRenderer.on('showAboutDialog', function(event, message) {
EthoMainGUI.showAboutDialog(message);
});
$("#mainNavBtnTransactions").click(function() {
EthoTransactions.clearFilter();
EthoMainGUI.changeAppState("transactions");