* Fixed cursor clicking ToDo lists clicking to early

* Added login form to home page with focus on load
* Tags update after editing tags from title card
* Fixed uploading of images/files
* Fixed images not appearing when opening images tab
* Search hits all categories on search, like archived
* Got rid of brand icons to reduce size
* Got rid of DiffPatchMatch and Crypto from note input panel to reduce size
* Disabled animation on io events so they don't annoy the shit out of people on other computers
This commit is contained in:
Max G
2020-05-20 07:57:15 +00:00
parent 543ecf0f2d
commit 06a140e0d4
12 changed files with 210 additions and 242 deletions

View File

@@ -57,6 +57,8 @@ Tag.addToNote = (userId, noteId, tagText) => {
.then( newTagId => {
Tag.associateWithNote(userId, noteId, newTagId)
.then( result => {
SocketIo.to(userId).emit('new_note_text_saved', {noteId})
resolve(result)
})
})

View File

@@ -12,6 +12,7 @@ let userId = null
router.use(function setUserId (req, res, next) {
if(userId = req.headers.userId){
userId = req.headers.userId
masterKey = req.headers.masterKey
}
next()
@@ -52,9 +53,7 @@ router.post('/upload', upload.single('file'), function (req, res, next) {
Attachment.processUploadedFile(userId, noteId, req.file)
.then( uploadResults => {
//Reindex note, attachment may have had text
Note.reindex(userId, noteId)
.then( data => {res.send(uploadResults)})
res.send(uploadResults)
})
})