refactor(password): remove protected_session_timeout TPL element

-> now part of protected_session_timeout widget
This commit is contained in:
Panagiotis Papadopoulos 2025-02-19 22:27:35 +01:00
parent 7f173b287a
commit 739eaf9fc0

View File

@ -32,17 +32,7 @@ const TPL = `
<button class="save-password-button btn btn-primary">${t("password.change_password")}</button> <button class="save-password-button btn btn-primary">${t("password.change_password")}</button>
</form> </form>
</div> </div>
`;
<div class="options-section">
<h4>${t("password.protected_session_timeout")}</h4>
<p>${t("password.protected_session_timeout_description")} <a class="tn-link" href="https://triliumnext.github.io/Docs/Wiki/protected-notes.html" class="external">${t("password.wiki")}</a> ${t("password.for_more_info")}</p>
<div class="form-group">
<label for="protected-session-timeout-in-seconds">${t("password.protected_session_timeout_label")}</label>
<input id="protected-session-timeout-in-seconds" class="protected-session-timeout-in-seconds form-control options-number-input" type="number" min="60">
</div>
</div>`;
// TODO: Deduplicate // TODO: Deduplicate
interface ChangePasswordResponse { interface ChangePasswordResponse {