Hey all,
I seem to be having issues when I’m calling ‘showModal’,
I’m calling the following from a button press on an asset panel. The modal shows up perfectly fine, however due to their being a promise issue, the code continues on.
I’m just wondering the best way to approach this? If I remove the showModal portion the code works fine, without any promise issues. However as soon as I add it back in I get the promise issue - even with a blank .html.
Any pointers would be great!! I’ve tried my hardest to avoid posting - but I’m all out of ideas :(.
async function removeDeviceConfirmed(){
let curAsset = await getCurrentAsset();
let curUser = await getCurrentUser();
let confirmation = client.interface.trigger('showModal', {
title: 'Are you sure?',
template: './views/delete-confirm.html',
data: {
username: curUser,
asset: curAsset
} });
}