Add a little guidance about how to set your name. It's a common confusion.
This commit is contained in:
		| @@ -264,6 +264,7 @@ class TfElement extends LitElement { | ||||
| 					hash=${this.hash} | ||||
| 					.unread=${this.unread} | ||||
| 					@refresh=${() => (this.unread = [])} | ||||
| 					?loading=${this.loading} | ||||
| 				></tf-tab-news> | ||||
| 			`; | ||||
| 		} else if (this.tab === 'connections') { | ||||
|   | ||||
| @@ -12,6 +12,7 @@ class TfTabNewsElement extends LitElement { | ||||
| 			following: {type: Array}, | ||||
| 			drafts: {type: Object}, | ||||
| 			expanded: {type: Object}, | ||||
| 			loading: {type: Boolean}, | ||||
| 		}; | ||||
| 	} | ||||
|  | ||||
| @@ -113,6 +114,15 @@ class TfTabNewsElement extends LitElement { | ||||
| 					.users=${this.users} | ||||
| 				></tf-profile>` | ||||
| 			: undefined; | ||||
| 		let edit_profile; | ||||
| 		if (!this.loading && | ||||
| 			this.users[this.whoami]?.name === undefined && | ||||
| 			this.hash.substring(1) != this.whoami) { | ||||
| 			edit_profile = html` | ||||
| 				<div class="w3-panel w3-padding w3-round w3-card-4 w3-theme-l3"> | ||||
| 					ℹ️ Follow your identity link ☝️ above to edit your profile and set your name. | ||||
| 				</div>`; | ||||
| 		} | ||||
| 		return html` | ||||
| 			<p class="w3-bar"> | ||||
| 				<button | ||||
| @@ -124,6 +134,7 @@ class TfTabNewsElement extends LitElement { | ||||
| 			</p> | ||||
| 			<div> | ||||
| 				Welcome, <tf-user id=${this.whoami} .users=${this.users}></tf-user>! | ||||
| 				${edit_profile} | ||||
| 			</div> | ||||
| 			<div> | ||||
| 				<tf-compose | ||||
|   | ||||
		Reference in New Issue
	
	Block a user