mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Make fileInput progress bar change color on error (#1673)
* Make fileInput progress bar change color on error. Fixes #1672 * Grunt * Update NEWS
This commit is contained in:
@@ -169,7 +169,7 @@ $.extend(FileUploader.prototype, FileProcessor.prototype);
|
||||
this.$container().css('visibility', visible ? 'visible' : 'hidden');
|
||||
};
|
||||
this.$setError = function(error) {
|
||||
this.$bar().toggleClass('bar-danger', (error !== null));
|
||||
this.$bar().toggleClass('progress-bar-danger', (error !== null));
|
||||
if (error !== null) {
|
||||
this.onProgress(null, 1);
|
||||
this.$bar().text(error);
|
||||
|
||||
Reference in New Issue
Block a user