summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Treffler <mail@jonathan-treffler.de>2020-09-02 15:10:40 +0200
committerJonathan Treffler <mail@jonathan-treffler.de>2020-09-02 15:10:40 +0200
commit4efece91123a695bebd8197f914e52b708b9b47f (patch)
treeaff146a43df2efdf57928178b88090fb65eb3db4
parent37adbe84af1334d43366020f67c7c492c06db4ae (diff)
modified new Folder button
-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>