forked from OctoPrint/OctoPrint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add option to disable cache busting on webcam URL
See OctoPrint#4107
- Loading branch information
Showing
6 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/octoprint/templates/snippets/settings/webcam/webcamCacheBuster.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="control-group" title="{{ _('Enable the cache buster on the webcam URl')|edq }}"> | ||
<div class="controls"> | ||
<label class="checkbox"> | ||
<input type="checkbox" data-bind="checked: webcam_cacheBuster" id="settings-webcamCacheBuster"> {{ _('Enable Cache buster') }} | ||
</label> | ||
<span class="help-inline"> | ||
<span class="label label-warning">{{ _("Warning") }}</span> | ||
{{ _("This may cause unpredicatable caching behaviour. Only disable if your webcam server is incompatible and does not work in OctoPrint's UI") }} | ||
</span> | ||
</div> | ||
</div> |