Added initial calibration modal wizard

This commit is contained in:
Joel Collins 2020-05-19 15:24:08 +01:00
parent 1a2822f709
commit 31b84e8477
8 changed files with 514 additions and 101 deletions

View file

@ -32,7 +32,7 @@ Vue.mixin({
var showModal = function(resolve, reject) {
UIkit.modal
.confirm(modalText)
.confirm(modalText, { stack: true })
.then(
function() {
resolve();
@ -61,7 +61,8 @@ Vue.mixin({
},
modalDialog: function(title, message) {
UIkit.modal.dialog(`
UIkit.modal.dialog(
`
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-modal-header">
<h2 class="uk-modal-title">${title}</h2>
@ -69,7 +70,9 @@ Vue.mixin({
<div class="uk-modal-body">
<p>${message}</p>
</div>
`);
`,
{ stack: true }
);
},
modalError: function(error) {
@ -104,6 +107,14 @@ Vue.mixin({
});
},
showModalElement: function(element) {
UIkit.modal(element).show();
},
hideModalElement: function(element) {
UIkit.modal(element).hide();
},
getLocalStorageObj: function(keyName) {
if (localStorage.getItem(keyName)) {
try {