Add stream URL to webcam error message for logged in users
This commit is contained in:
parent
0657160389
commit
0ad09e422d
3 changed files with 8 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -555,16 +555,19 @@ ul.dropdown-menu li a {
|
|||
position: relative;
|
||||
width: 100%;
|
||||
padding-bottom: 100%;
|
||||
pointer-events: none;
|
||||
|
||||
.webcam_fixed_ratio {
|
||||
position: absolute;
|
||||
transform: rotate(-90deg);
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
pointer-events: none;
|
||||
|
||||
.webcam_fixed_ratio_inner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -572,8 +575,9 @@ ul.dropdown-menu li a {
|
|||
.webcam_unrotated {
|
||||
.webcam_fixed_ratio {
|
||||
width: 100%;
|
||||
padding-bottom: 100%;
|
||||
pointer-events: none;
|
||||
|
||||
padding-bottom: 100%;
|
||||
&.ratio43 {
|
||||
padding-bottom: 75%;
|
||||
}
|
||||
|
|
@ -594,6 +598,7 @@ ul.dropdown-menu li a {
|
|||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
<p><strong>{{ _('Webcam stream not loaded') }}</strong></p>
|
||||
<p data-bind="visible: !loginState.isAdmin()"><small>{{ _('It might not be configured correctly. To have this fixed, get in touch with an administrator of this OctoPrint instance.') }}</small></p>
|
||||
<p data-bind="visible: loginState.isAdmin"><small>{{ _('It might not be configured correctly. You can change the URL of the stream under "Settings" > "Webcam & Timelapse" > "Stream URL". If you don\'t have a webcam just set the URL to an empty value.') }}</small></p>
|
||||
<p data-bind="visible: loginState.isUser"><small>{{ _('Currently configured stream URL') }}: <a target="_blank" rel="noreferrer" data-bind="attr: {href: settings.webcam_streamUrl}, text: settings.webcam_streamUrl"></a></small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="webcam_rotator" data-bind="css: { webcam_rotated: settings.webcam_rotate90(), webcam_unrotated: !settings.webcam_rotate90() }">
|
||||
|
|
|
|||
Loading…
Reference in a new issue