Skip to content

Commit

Permalink
If no SD card support, remove SD file filter
Browse files Browse the repository at this point in the history
When SD card support is disabled on the server, remove any client side
filtering to just SD files since there aren't any and there won't be UI
turn remove the filter either.  Should address #1300
  • Loading branch information
markwal committed Mar 28, 2016
1 parent 1a4c06d commit 183ca32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/octoprint/static/js/app/viewmodels/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ $(function() {
self.localTarget = $("#drop_locally");
} else {
self.localTarget = $("#drop");
self.listHelper.removeFilter('sd');
}
self.sdTarget = $("#drop_sd");

Expand Down

0 comments on commit 183ca32

Please sign in to comment.