Skip to content

Commit

Permalink
Добавил кэширование фоток в заметке
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed May 16, 2024
1 parent a8e3434 commit e828e48
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions public/src/components/NoteEditor/NoteEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,46 +297,46 @@ export class NoteEditor extends ScReact.Component<NoteEditorProps, NoteEditorTyp

</div>

{/*{this.state.noteStatus == "sync" ?*/}
{/* <div*/}
{/* className={"note-save-indicator " + (this.state.noteStatus == "sync" ? "active" : "hidden")}>*/}
{/* <Tooltip icon={"sync.svg"}*/}
{/* showHoverTooltip={true}*/}
{/* hoverTooltip={"Синхронизированно"}/>*/}
{/* </div>*/}
{/* :*/}
{/* <div*/}
{/* className={"note-save-indicator " + (this.state.noteStatus == "saved" ? "active" : "hidden")}>*/}
{/* <Tooltip icon={"check.svg"}*/}
{/* showHoverTooltip={true}*/}
{/* hoverTooltip={"Сохранено"}/>*/}
{/* </div>*/}
{/*}*/}


<div>
{
this.state.noteStatus == "saved" ?
<div className={"note-save-indicator " + (this.state.noteStatus ? "active" : "")}>
<Tooltip icon={"check.svg"}
showHoverTooltip={true}
hoverTooltip={"Сохранено"}/>
</div>
:
""
}
{this.state.noteStatus == "sync" ?
<div
className={"note-save-indicator " + (this.state.noteStatus == "sync" ? "active" : "hidden")}>
<Tooltip icon={"sync.svg"}
showHoverTooltip={true}
hoverTooltip={"Синхронизированно"}/>
</div>
:
<div
className={"note-save-indicator " + (this.state.noteStatus == "saved" ? "active" : "hidden")}>
<Tooltip icon={"check.svg"}
showHoverTooltip={true}
hoverTooltip={"Сохранено"}/>
</div>
}

{
this.state.noteStatus == "sync" ?
<div className={"note-save-indicator " + (this.state.noteStatus ? "active" : "")}>
<Tooltip icon={"sync.svg"}
showHoverTooltip={true}
hoverTooltip={"Синхронизированно"}/>
</div>
:
""
}
</div>

{/*<div>*/}
{/* {*/}
{/* this.state.noteStatus == "saved" ?*/}
{/* <div className={"note-save-indicator " + (this.state.noteStatus ? "active" : "")}>*/}
{/* <Tooltip icon={"check.svg"}*/}
{/* showHoverTooltip={true}*/}
{/* hoverTooltip={"Сохранено"}/>*/}
{/* </div>*/}
{/* :*/}
{/* ""*/}
{/* }*/}

{/* {*/}
{/* this.state.noteStatus == "sync" ?*/}
{/* <div className={"note-save-indicator " + (this.state.noteStatus ? "active" : "")}>*/}
{/* <Tooltip icon={"sync.svg"}*/}
{/* showHoverTooltip={true}*/}
{/* hoverTooltip={"Синхронизированно"}/>*/}
{/* </div>*/}
{/* :*/}
{/* ""*/}
{/* }*/}
{/*</div>*/}


<div className="collaborators-container">
Expand Down

0 comments on commit e828e48

Please sign in to comment.