Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/AppSidebar/NotesItem.vue')
-rw-r--r--src/components/AppSidebar/NotesItem.vue10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/AppSidebar/NotesItem.vue b/src/components/AppSidebar/NotesItem.vue
index b90981cc..34cdd94b 100644
--- a/src/components/AppSidebar/NotesItem.vue
+++ b/src/components/AppSidebar/NotesItem.vue
@@ -45,6 +45,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
<script>
import editableItem from '../../mixins/editableItem.js'
+import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import { translate as t } from '@nextcloud/l10n'
import MarkdownIt from 'markdown-it'
@@ -97,6 +98,12 @@ export default {
},
},
},
+ mounted() {
+ subscribe('tasks:edit-appsidebar-notes', this.setNotes)
+ },
+ beforeDestroy() {
+ unsubscribe('tasks:edit-appsidebar-notes', this.setNotes)
+ },
methods: {
/**
* Focus the notes field after editing is enabled
@@ -111,6 +118,9 @@ export default {
)
}
},
+ setNotes($event) {
+ this.setEditing(true, $event)
+ },
},
}
</script>