forked from cory/tildefriends
Add a thing to encourage editing your profile.
This commit is contained in:
parent
eacaf392b1
commit
d9ce569eb9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user