disable editor if note is deleting
This commit is contained in:
parent
e36e5a55f9
commit
5bd0a2e65c
|
@ -108,6 +108,7 @@ export default {
|
|||
},
|
||||
|
||||
deleteNote(noteId) {
|
||||
store.commit('setNoteAttribute', { noteId: noteId, attribute: 'deleting', value: true })
|
||||
return axios
|
||||
.delete(this.url('/notes/' + noteId))
|
||||
.then(() => {
|
||||
|
|
|
@ -94,7 +94,6 @@ export default {
|
|||
},
|
||||
|
||||
onDeleteNote() {
|
||||
// TODO disable editor
|
||||
this.loading.delete = true
|
||||
NotesService.deleteNote(this.note.id)
|
||||
.then(() => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<AppContent :class="{ loading: loading || isManualSave, 'icon-error': !loading && (!note || note.error), 'sidebar-open': sidebarOpen }">
|
||||
<div v-if="!loading && note && !note.error" id="note-container"
|
||||
<div v-if="!loading && note && !note.error && !note.deleting" id="note-container"
|
||||
class="note-container" :class="{ fullscreen: fullscreen }"
|
||||
>
|
||||
<div class="note-editor">
|
||||
|
|
Loading…
Reference in New Issue