summaryrefslogtreecommitdiffstats
path: root/src/components/Sidebar.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Sidebar.vue')
-rw-r--r--src/components/Sidebar.vue10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue
index 7baf378de..22185e5a2 100644
--- a/src/components/Sidebar.vue
+++ b/src/components/Sidebar.vue
@@ -10,7 +10,10 @@
5
</AppNavigationCounter>
</AppNavigationItem>
- <AppNavigationItem :title="t('news','New folder')" icon="icon-add" :new-item="true" />
+ <AppNavigationItem :title="t('news','New folder')"
+ icon="icon-add"
+ :new-item="true"
+ @new-item="newFolder" />
</ul>
</AppNavigation>
</template>
@@ -28,5 +31,10 @@ export default {
AppNavigationItem,
AppNavigationCounter,
},
+ methods: {
+ newFolder(value) {
+ alert(value)
+ },
+ },
}
</script>