⭐️ Writeable shared links part 1 (#66)

* Minor fixes and implemented writeable shared links (no security)

* Go t onode 16 for frontend
This commit is contained in:
Romaric Mourgues
2023-06-05 10:06:22 +02:00
committed by GitHub
parent f8d3fc9784
commit 49ec20d60e
12 changed files with 97 additions and 95 deletions
@@ -51,24 +51,6 @@ class CurrentUser extends Observable {
return getUser(Login.currentUserId);
}
updateUserStatus = (newStatus: string[]) => {
return () => {
const { updateStatus } = useCurrentUser();
updateStatus(newStatus);
};
};
async updateStatusIcon(status: string[]) {
const update = {
id: Login.currentUserId,
status_icon: status,
};
Collections.get('users').updateObject(update);
this.updateUserStatus(status);
await UserAPIClient.updateUserStatus(`${status[0]} ${status[1]}`);
}
updateTutorialStatus(key: string, set_false?: unknown) {
const user = this.get();
if (!user) {