Skip to content

Build your personal knowledge base with Trilium Notes

hide logout button in electron since it doesn't do anything

azivner19ffa14f1038
diff --git a/public/javascripts/init.js b/public/javascripts/init.js
index b1c0d4a1e6..5fec6178f1 100644
--- a/public/javascripts/init.js
+++ b/public/javascripts/init.js
@@ -164,4 +164,6 @@ window.onerror = function (msg, url, lineNo, columnNo, error) {
messaging.logError(message);
return false;
-};
\ No newline at end of file
+};
+
+$("#logout-button").toggle(!isElectron());
\ No newline at end of file
diff --git a/views/index.ejs b/views/index.ejs
index 7611f09c4d..2c3a6c7748 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -29,7 +29,7 @@
<button class="btn btn-xs" onclick="settings.showDialog();">Settings</button>
- <form action="logout" method="POST" style="display: inline;">
+ <form action="logout" id="logout-button" method="POST" style="display: inline;">
<input type="submit" class="btn btn-xs" value="Logout">
</form>
</div>
@@ -172,11 +172,11 @@
<div id="protected-session-password-dialog" title="Protected session" style="display: none;">
<form id="protected-session-password-form">
<div class="form-group">
- <label for="protected-session-password">To proceed with requested action you need to enter protected session by entering password:</label>
+ <label for="protected-session-password">To proceed with requested action you need to start protected session by entering password:</label>
<input id="protected-session-password" class="form-control" type="password">
</div>
- <button class="btn btn-sm">Enter protected session <kbd>enter</kbd></button>
+ <button class="btn btn-sm">Start protected session <kbd>enter</kbd></button>
</form>
</div>