mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
global menu
This commit is contained in:
parent
4a093000be
commit
c09570cf39
@ -94,6 +94,13 @@ $(document).on("click", "button[data-help-page]", e => {
|
|||||||
|
|
||||||
$("#logout-button").toggle(!utils.isElectron());
|
$("#logout-button").toggle(!utils.isElectron());
|
||||||
|
|
||||||
|
$("#logout-button").click(() => {
|
||||||
|
const $logoutForm = $('<form action="logout" method="POST">');
|
||||||
|
|
||||||
|
$("body").append($logoutForm);
|
||||||
|
$logoutForm.submit();
|
||||||
|
});
|
||||||
|
|
||||||
$("#tree").on("click", ".unhoist-button", hoistedNoteService.unhoist);
|
$("#tree").on("click", ".unhoist-button", hoistedNoteService.unhoist);
|
||||||
|
|
||||||
if (utils.isElectron()) {
|
if (utils.isElectron()) {
|
||||||
|
@ -44,20 +44,29 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-sm" id="sync-now-button" title="Trigger sync">
|
<div class="dropdown" id="global-menu">
|
||||||
<span class="jam jam-refresh"></span>
|
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle">
|
||||||
Sync (<span id="outstanding-syncs-count">0</span>)
|
<span class="jam jam-align-justify"></span>
|
||||||
</button>
|
Menu
|
||||||
|
<span class="caret"></span>
|
||||||
<button class="btn btn-sm" id="options-button">
|
|
||||||
<span class="jam jam-settings-alt"></span> Options</button>
|
|
||||||
|
|
||||||
<form action="logout" id="logout-button" method="POST" style="display: inline;">
|
|
||||||
<button type="submit" class="btn btn-sm">
|
|
||||||
<span class="jam jam-log-out"></span>
|
|
||||||
Logout
|
|
||||||
</button>
|
</button>
|
||||||
</form>
|
<div class="dropdown-menu dropdown-menu-right">
|
||||||
|
<a class="dropdown-item" id="options-button">
|
||||||
|
<span class="jam jam-settings-alt"></span>
|
||||||
|
Options
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="dropdown-item" id="sync-now-button" title="Trigger sync">
|
||||||
|
<span class="jam jam-refresh"></span>
|
||||||
|
Sync (<span id="outstanding-syncs-count">0</span>)
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="dropdown-item" id="logout-button">
|
||||||
|
<span class="jam jam-log-out"></span>
|
||||||
|
Logout
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user