You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an example project for TalkJS's tutorial on how to make a clickable avatar that links to the user’s profile.
1
+
This is an example project for TalkJS's tutorial on how to make a clickable link to the user’s profile.
2
2
3
-
This project uses TalkJS's [custom header feature](https://talkjs.com/docs/Features/Customizations/Creating_Custom_Headers/). The custom header in this example contains a link that leads to user's profile page.
3
+
This project uses TalkJS's [custom header feature](https://talkjs.com/docs/Features/Customizations/Creating_Custom_Headers/). The custom header in this example contains a link that leads to user's profile page.
4
4
5
-
The frontend fetches the data from a backend ExpressJS server that returns the list of users, the information about the current user and the current template.
5
+
The frontend fetches the data from a backend ExpressJS server that returns the list of users, the information about the current user and the current template.
6
6
7
7
## Prerequisites
8
8
9
-
To run this tutorial, you will need:
9
+
To run this tutorial, you will need:
10
10
11
11
- A [TalkJS account](https://talkjs.com/dashboard/login)
12
12
-[Node.js](https://nodejs.org/en)
@@ -17,4 +17,11 @@ To run this tutorial, you will need:
17
17
1. Clone or download the project
18
18
2. Replace `<APP_ID>` in `server.js` with the value found in your [TalkJS dashboard](https://talkjs.com/dashboard/login).
19
19
3. Run `npm install` to install dependencies.
20
-
4. Run `npm start` to start the server.
20
+
4. Run `npm start` to start the server.
21
+
5. Add an action button to the chat header of your theme:
22
+
1. Go to the **Themes** tab of the TalkJS dashboard.
23
+
2. Select to **Edit** your current theme.
24
+
3. In the list of **Built-in Components**, select **ChatHeader**.
25
+
4. Find the code for displaying the user's name in the header (something like `<span>{{user.name}}</span>`) and replace it with the following:
0 commit comments