mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
chore(gui): group logout/restart/shutdown buttons together in Actions menu (#9801)
Currently, the "Restart" and "Shutdown" buttons are displayed in the middle of the Actions menu. On the other hand, the "Log Out" button is displayed at the very bottom. However, in other cases, e.g. the menus in operating systems like Windows or macOS, these kind of buttons are usually grouped together. Therefore, move the "Restart" and "Shutdown" buttons down, so that they are listed together with the "Log Out" button. Also, change the order, so that it goes from the least impactful ("Log Out") to the most impactful ("Shutdown"). Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com> ### Screenshots #### Before ![image](https://github.com/user-attachments/assets/a51438ef-bb6f-4535-a972-8c1bc1dffa02) #### After ![image](https://github.com/user-attachments/assets/535762d6-6f26-44ab-a402-db87bdcbfb36) Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
This commit is contained in:
parent
ac06fd97e9
commit
8f69e874c4
@ -118,10 +118,6 @@
|
|||||||
<li ng-if="authenticated"><a href="" ng-click="showSettings()"><span class="fa fa-fw fa-cog"></span> <span translate>Settings</span></a></li>
|
<li ng-if="authenticated"><a href="" ng-click="showSettings()"><span class="fa fa-fw fa-cog"></span> <span translate>Settings</span></a></li>
|
||||||
<li ng-if="authenticated"><a href="" ng-click="showDeviceIdentification(thisDevice())"><span class="fa fa-fw fa-qrcode"></span> <span translate>Show ID</span></a></li>
|
<li ng-if="authenticated"><a href="" ng-click="showDeviceIdentification(thisDevice())"><span class="fa fa-fw fa-qrcode"></span> <span translate>Show ID</span></a></li>
|
||||||
|
|
||||||
<li ng-if="authenticated" class="divider" aria-hidden="true"></li>
|
|
||||||
<li ng-if="authenticated"><a href="" ng-click="shutdown()"><span class="fa fa-fw fa-power-off"></span> <span translate>Shutdown</span></a></li>
|
|
||||||
<li ng-if="authenticated"><a href="" ng-click="restart()"><span class="fa fa-fw fa-refresh"></span> <span translate>Restart</span></a></li>
|
|
||||||
|
|
||||||
<li ng-if="authenticated" class="divider" aria-hidden="true"></li>
|
<li ng-if="authenticated" class="divider" aria-hidden="true"></li>
|
||||||
<li ng-if="authenticated"><a href="" ng-click="advanced()"><span class="fa fa-fw fa-cogs"></span> <span translate>Advanced</span></a></li>
|
<li ng-if="authenticated"><a href="" ng-click="advanced()"><span class="fa fa-fw fa-cogs"></span> <span translate>Advanced</span></a></li>
|
||||||
<li ng-if="authenticated"><a href="" ng-click="logging.show()"><span class="fa fa-fw fa-wrench"></span> <span translate>Logs</span></a></li>
|
<li ng-if="authenticated"><a href="" ng-click="logging.show()"><span class="fa fa-fw fa-wrench"></span> <span translate>Logs</span></a></li>
|
||||||
@ -129,8 +125,10 @@
|
|||||||
<li class="divider" aria-hidden="true" ng-if="config.gui.debugging"></li>
|
<li class="divider" aria-hidden="true" ng-if="config.gui.debugging"></li>
|
||||||
<li><a href="/rest/debug/support" target="_blank" ng-if="config.gui.debugging"><span class="fa fa-fw fa-user-md"></span> <span translate>Support Bundle</span></a></li>
|
<li><a href="/rest/debug/support" target="_blank" ng-if="config.gui.debugging"><span class="fa fa-fw fa-user-md"></span> <span translate>Support Bundle</span></a></li>
|
||||||
|
|
||||||
<li ng-if="authenticated && isAuthEnabled()" class="divider" aria-hidden="true"></li>
|
<li ng-if="authenticated" class="divider" aria-hidden="true"></li>
|
||||||
<li ng-if="authenticated && isAuthEnabled()"><a href="" ng-click="logout()"><span class="far fa-fw fa-sign-out"></span> <span translate>Log Out</span></a></li>
|
<li ng-if="authenticated && isAuthEnabled()"><a href="" ng-click="logout()"><span class="far fa-fw fa-sign-out"></span> <span translate>Log Out</span></a></li>
|
||||||
|
<li ng-if="authenticated"><a href="" ng-click="restart()"><span class="fa fa-fw fa-refresh"></span> <span translate>Restart</span></a></li>
|
||||||
|
<li ng-if="authenticated"><a href="" ng-click="shutdown()"><span class="fa fa-fw fa-power-off"></span> <span translate>Shutdown</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user