Open smartm0use opened 8 years ago
Hello, i created the following method:
function throwErrorDialogFn(message) { var dialogTitle = 'Error'; var dialogMsg = ''; if (message === 'no-data') { dialogMsg = 'No documents'; } else if (message === 'error') { dialogMsg = 'Loading error'; } var dialogOptions = { animation: true, backdrop: 'static', keyboard: false, size: 'sm' }; var dialog = dialogs.error(dialogTitle, dialogMsg, dialogOptions); dialog.result.then(function(btn) { console.log('button1'); }, function(btn) { console.log('button2'); }); }
But it displays only the first button. How to enable button 2 or how to add more buttons?
Hello, i created the following method:
But it displays only the first button. How to enable button 2 or how to add more buttons?