mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -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:
2
NEWS.md
2
NEWS.md
@@ -11,6 +11,8 @@ shiny 1.0.2.9000
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fixed [#1672](https://github.com/rstudio/shiny/issues/1672): When an error occurred while uploading a file, the progress bar did not change colors. ([#1673](https://github.com/rstudio/shiny/pull/1673))
|
||||
|
||||
### Library updates
|
||||
|
||||
|
||||
|
||||
@@ -4979,7 +4979,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
||||
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);
|
||||
|
||||
File diff suppressed because one or more lines are too long
4
inst/www/shared/shiny.min.js
vendored
4
inst/www/shared/shiny.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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