Skip to content

Commit

Permalink
conf: show apply/reload button on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jul 1, 2024
1 parent dd24e7b commit 1b7be02
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions plugins/plugins-available/conf/templates/_conf_frame.tt
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,28 @@
</div>
</div>
<div class="h-3">
[% IF last_changed || needs_commit || show_save_reload %]
[% PROCESS _button btn = {
form => { action => 'conf.cgi', },
data => { sub => 'objects', 'apply' => 'yes', save_and_reload => 'yes', CSRFtoken => get_user_token(c), },
button => { class => 'w-full', title => "Apply all changes and reload core", onclick => "return save_reload_apply(this, '" _ show_save_reload _ "')", html => '<i class="uil uil-save"></i>Save &amp; Reload' },
}%]
[% END %]
[% apply_reload_btn = BLOCK %]
[% IF last_changed || needs_commit || show_save_reload %]
[% PROCESS _button btn = {
form => { action => 'conf.cgi', },
data => { sub => 'objects', 'apply' => 'yes', save_and_reload => 'yes', CSRFtoken => get_user_token(c), },
button => { class => 'w-full', title => "Apply all changes and reload core", onclick => "return save_reload_apply(this, '" _ show_save_reload _ "')", html => '<i class="uil uil-save"></i>Save &amp; Reload' },
}%]
[% END %]
[% END %]
[% apply_reload_btn %]
</div>
</div>
</div>
[% END %]

[% IF action != "tree" && action != "editor" %]
<div class="flex place-content-center">
<div class="w-full flexrow justify-between place-content-center">
<div class="w-34"></div>
<h1 class='mainTitle'>[% subtitle %]</h1>
<div class="w-34">
<div class="2xl:hidden">[% apply_reload_btn %]</div>
</div>
</div>
[% END %]

Expand Down

0 comments on commit 1b7be02

Please sign in to comment.