summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Treffler <mail@jonathan-treffler.de>2020-09-02 15:10:40 +0200
committerSimon Spannagel <simonspa@kth.se>2021-12-16 20:22:59 +0100
commitb4b01fb78563aeb12e240ec5dbcd12475e3b5827 (patch)
tree60ed9c72074da751891f2fc5d38ba9766ed0a616
parent75e9caf82f0ca9568ad3736fce19e22f0c11bf2e (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>