Skip to content

Commit

Permalink
Заготовка под уведомления о приглашении в заметку
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed May 25, 2024
1 parent 3c01cd4 commit 464dfc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions public/src/modules/stores/NotesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {WebSocketConnection} from "../websocket";
import {insertBlockPlugin} from "../../components/Editor/Plugin";
import {AppNoteStore, NoteStoreActions} from "./NoteStore";
import {downloadFile, parseNoteTitle} from "../utils";
import {Note} from '../../components/Note/Note';

export type NotesStoreState = {
notes: NoteType[],
Expand Down Expand Up @@ -118,10 +119,12 @@ class NotesStore extends BaseStore<NotesStoreState> {
const title = data.note_title.replace("\\", "").replace('"', "")
AppToasts.info(owner + " пригласил вас в свою заметку!")

const note = {
const note:NoteType = {
"id": data.note_id,
"data": null,
"create_time": data.created,
"data": {
"title": data.note_title,
"content": []
},
"update_time": data.created,
"owner_id": null,
"parent": "00000000-0000-0000-0000-000000000000",
Expand Down
1 change: 1 addition & 0 deletions public/src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type NoteType = {
},
update_time: string,
owner_id: string,
collaborators: string[],
icon: string,
header: string,
favorite: boolean,
Expand Down

0 comments on commit 464dfc2

Please sign in to comment.