Skip to content

Commit 18d1e75

Browse files
author
Dave Conway-Jones
committed
fix dialogue to be able to send 1 if required
to close #736
1 parent 994a3ca commit 18d1e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ app.controller('MainController', ['$mdSidenav', '$window', 'UiEvents', '$locatio
643643
$mdDialog.show(confirm, { panelClass:'nr-dashboard-dialog' }).then(
644644
function(res) {
645645
msg.msg.payload = msg.ok;
646-
if (res != true) { msg.msg.payload = res; }
646+
if (res !== true) { msg.msg.payload = res; }
647647
if (res == undefined) { msg.msg.payload = ""; }
648648
events.emit({ id:msg.id, value:msg });
649649
},

0 commit comments

Comments
 (0)