Skip to content

Commit

Permalink
Adding error Alert
Browse files Browse the repository at this point in the history
  • Loading branch information
rushabh31 committed Jul 27, 2019
1 parent bb84809 commit cec4fa8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 12 additions & 2 deletions app/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@
title_y = input$titleY)$plot
} else if(is.null(dt[[input$selectX]]) & is.null(dt[[input$selectY]]))
{
print("no plot")
sendSweetAlert(
session = session,
title = "Error !!",
text = "It's broken...",
type = "error"
)

} else if(!is.null(dt[[input$selectX]])){
histogram(data = dt,
Expand All @@ -134,7 +139,12 @@
title_y = input$titleY)$plot

} else {
print("no plot")
sendSweetAlert(
session = session,
title = "Error !!",
text = "It's broken...",
type = "error"
)

},

Expand Down
4 changes: 3 additions & 1 deletion www/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,6 @@ border-radius:20px;
background-color: #1c1c1d !important;
margin-bottom: 0px;
padding-bottom: 0px;
}
}


0 comments on commit cec4fa8

Please sign in to comment.