Add a thing to encourage editing your profile.

This commit is contained in:
Cory McWilliams 2024-04-17 17:21:44 +01:00
parent eacaf392b1
commit d9ce569eb9

View File

@ -154,6 +154,10 @@ class TfNavigationElement extends LitElement {
this.renderRoot.getElementById('id_dropdown').classList.toggle('w3-show');
}
edit_profile() {
window.location.href = '/~core/ssb/#' + this.identity;
}
render_identity() {
let self = this;
if (this.identities?.length) {
@ -169,6 +173,7 @@ class TfNavigationElement extends LitElement {
</button>
<div id="id_dropdown" class="w3-dropdown-content w3-bar-block w3-card-4" style="max-width: 100%">
<button class="w3-bar-item w3-button w3-border" @click=${() => window.location.href = "/~core/identity"}>Manage Identities...</button>
<button class="w3-bar-item w3-button w3-border" @click=${self.edit_profile}>Edit Profile...</button>
${this.identities.map(
(x) => html`
<button