Bugfix Batch

* Animations disabled on remote events, closing note still triggers animation for local user
* Created save icons to fix display on mobile
* Hidden URLs are hidden until note is deleted or URL is removed from note
* Tags search all categories, but probably not trash
* Back to all notes button clears search
* Deleted Notes are removed from search index
This commit is contained in:
Max G
2020-05-19 03:38:43 +00:00
parent 9c4fff7913
commit fc1f3f81fe
8 changed files with 58 additions and 45 deletions

View File

@@ -54,8 +54,6 @@
</div>
<div class="menu-bottom-half">
<div class="edit-divide"></div>
<div class="edit-button" v-on:click="undoCustom()" data-tooltip="Undo" data-position="bottom center" data-inverted>
<i class="undo icon"></i>
@@ -101,13 +99,16 @@
<i class="folder icon"></i>
</div>
<span>{{ statusText }}</span>
<div class="edit-button">
<i class="icons">
<i class="grey save outline icon"></i>
<i v-if="statusText == 'saved'" class="green small bottom left corner check icon"></i>
<i v-if="statusText == 'saving'" class="small bottom left corner double angle up icon"></i>
</i>
</div>
</div>
<!-- <span :data-tooltip="`Created: ${$helpers.timeAgo(created)}`">
Edited: {{ $helpers.timeAgo(updated) }}
</span> -->
</div>
<div class="bottom-edit-menu"></div>
@@ -265,7 +266,7 @@
updated: '',
shareUsername: null,
diffNoteText: '',
statusText: 'Saved.',
statusText: 'saved',
lastNoteHash: null,
saveDebounce: null, //Prevent save from being called numerous times quickly
updated: 'Never',
@@ -1035,7 +1036,7 @@
},
onKeyup(){
this.statusText = 'Modded'
this.statusText = 'modified'
// this.diffText()
@@ -1063,7 +1064,7 @@
const currentNoteText = this.getText()
const currentHash = this.hashString( currentNoteText )
if( this.lastNoteHash == currentHash){
this.statusText = 'Saved.'
this.statusText = 'saved'
return resolve(true)
}
@@ -1084,9 +1085,9 @@
// console.log('Save Hash', currentHash)
this.statusText = 'Saving'
this.statusText = 'saving'
axios.post('/api/note/update', postData).then( response => {
this.statusText = 'Saved.'
this.statusText = 'saved'
this.updated = Math.round((+new Date)/1000)
this.modified = true
@@ -1298,7 +1299,7 @@
background-color: var(--menu-accent);
height: 15px;
width: 1px;
margin: 0 3px;
margin: 0 1px;
padding: 0;
}
@media only screen and (max-width: 740px) {