Development
This commit is contained in:
parent
d004026285
commit
bccb260ed0
2 changed files with 8 additions and 3 deletions
|
|
@ -906,7 +906,8 @@ def _render_item(item, tokens, inherited_req=None):
|
||||||
|
|
||||||
if t == 'pre_block':
|
if t == 'pre_block':
|
||||||
text = e(apply_tokens(item.get('text', ''), tokens))
|
text = e(apply_tokens(item.get('text', ''), tokens))
|
||||||
return f'<pre class="pre-block">{text}</pre>'
|
extra = ' data-scroll-bottom' if item.get('scroll_to_bottom') else ''
|
||||||
|
return f'<pre class="pre-block"{extra}>{text}</pre>'
|
||||||
|
|
||||||
if t == 'credential_fields':
|
if t == 'credential_fields':
|
||||||
psel = e(item.get('provider_select', 'provider'))
|
psel = e(item.get('provider_select', 'provider'))
|
||||||
|
|
@ -2485,6 +2486,9 @@ function startApplyPoller(uuid, bar, mine) {
|
||||||
};
|
};
|
||||||
macInput._triggerValidate();
|
macInput._triggerValidate();
|
||||||
})();
|
})();
|
||||||
|
document.querySelectorAll('.pre-block[data-scroll-bottom]').forEach(function(el) {
|
||||||
|
el.scrollTop = el.scrollHeight;
|
||||||
|
});
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -458,7 +458,8 @@
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "pre_block",
|
"type": "pre_block",
|
||||||
"text": "%DDNS_LOG_TAIL%"
|
"text": "%DDNS_LOG_TAIL%",
|
||||||
|
"scroll_to_bottom": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "raw_html",
|
"type": "raw_html",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue