+ main menu support
+ about info
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user