summaryrefslogtreecommitdiffstats
path: root/src/components/Sidebar.vue
blob: d029823db56c55b4079df99cd3dec7e8e31b03af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<template>
	<AppNavigation>
		<AppNavigationNew
			:text="t('news','Subscribe')"
			button-id="new-feed-button"
			button-class="icon-add" />
		<ul id="locations" class="with-icon">
			<AppNavigationItem :title="t('news','Unread articles')" icon="icon-rss">
				<AppNavigationCounter slot="counter" :highlighted="true">
					5
				</AppNavigationCounter>
			</AppNavigationItem>
			<AppNavigationNewItem :title="t('news','New folder')"
				icon="icon-add"
				@new-item="newFolder" />
		</ul>
	</AppNavigation>
</template>

<script>
import AppNavigation from '@nextcloud/vue/dist/Components/AppNavigation'
import AppNavigationNew from '@nextcloud/vue/dist/Components/AppNavigationNew'
import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem'
import AppNavigationNewItem from '@nextcloud/vue/dist/Components/AppNavigationNewItem'
import AppNavigationCounter from '@nextcloud/vue/dist/Components/AppNavigationCounter'

export default {
	components: {
		AppNavigation,
		AppNavigationNew,
		AppNavigationItem,
		AppNavigationNewItem,
		AppNavigationCounter,
	},
	methods: {
		newFolder(value) {
			alert(value)
		},
	},
}
</script>