Files
deck/src/components/card/CardSidebar.vue
Julius Härtl a7497aa590 Use AppSidebar component for card sidebar
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-04-26 10:22:26 +02:00

68 lines
1.7 KiB
Vue

<!--
- @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
-
- @author Julius Härtl <jus@bitgrid.net>
-
- @license GNU AGPL version 3 or any later version
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-->
<template>
<app-sidebar
title="andy-yeo-1387151-unsplash.jpg"
subtitle="4,3 MB, last edited 19 days ago"
:actions="[]"
@close="closeSidebar">
<template #action>
</template>
<AppSidebarTab name="Description" icon="icon-description">
this is the description tab
</AppSidebarTab>
<AppSidebarTab name="Timeline" icon="icon-activity">
this is the activity tab
</AppSidebarTab>
<AppSidebarTab name="Attachments" icon="icon-files-dark">
this is the files tab
</AppSidebarTab>
</app-sidebar>
</template>
<script>
import { AppSidebar, AppSidebarTab } from 'nextcloud-vue'
export default {
name: 'CardSidebar',
components: {
AppSidebar,
AppSidebarTab
},
data() {
return {
}
},
methods: {
closeSidebar() {
this.$router.push({ name: 'board' })
}
}
}
</script>
<style lang="scss" scoped>
</style>