feat: add profile language preferences and refine toast, dropdown and history UI

This commit is contained in:
Mateusz Gruszczyński
2026-09-04 23:48:09 +02:00
parent f036240d5d
commit bf13587a71
42 changed files with 3971 additions and 357 deletions
+5
View File
@@ -10,6 +10,7 @@
import { api } from "@rustpad/api";
import { askConfirm } from "@rustpad/modal";
import { NoteSocket, PadSocket } from "@rustpad/socket";
import { queueToast } from "@rustpad/toast";
function encode(value) {
return encodeURIComponent(value);
@@ -118,6 +119,10 @@ export function createWorkspaceNoteAdapter() {
method: "DELETE",
body: JSON.stringify({ access_token: accessToken || null }),
});
queueToast(`The note "${info.title}" was deleted.`, {
type: "success",
title: "Note deleted",
});
location.assign(`/w/${encode(workspaceSlug)}`);
},
};