-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first pass at redesigning submit #418
Changes from all commits
4429bb4
f842692
ec35181
a5ce288
7367ba2
0fc5c4e
824209c
7c2a048
2495764
a3f8b15
ca37355
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"makefile.configureOnOpen": false | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,8 +259,7 @@ send_error_to_ui <- function(blk, is_valid, session) { | |
) | ||
|
||
# Toggle submit field | ||
# FIXME: maybe we want to handle this outside the function? | ||
if ("submit_block" %in% class(blk)) { | ||
if (!is.null(attr(blk, "submit"))) { | ||
session$sendCustomMessage( | ||
"toggle-submit", | ||
list(state = is_valid$block, id = ns("submit")) | ||
|
@@ -281,7 +280,7 @@ send_error_to_ui <- function(blk, is_valid, session) { | |
) | ||
|
||
# Send validation message | ||
if (!is_valid$block) { | ||
if (!is_valid$block && length(is_valid$message)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix #415 |
||
insertUI( | ||
selector = sprintf("[data-value=\"%s\"] .block-validation", ns("block")), | ||
ui = div( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,6 +199,7 @@ reference: | |
|
||
news: | ||
releases: | ||
- text: "blockr 0.0.2.9020" | ||
- text: "blockr 0.0.2" | ||
- text: "blockr 0.0.1.9000" | ||
|
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix #417