last stand

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-07-26 11:17:59 +02:00
committed by Julius Härtl
parent 4e67c3172b
commit ac9fef5f05
9 changed files with 85 additions and 67 deletions

View File

@@ -95,6 +95,7 @@ export default {
.then((board) => {
this.$store.dispatch('setCurrentBoard', board)
this.$store.dispatch('loadStacks', board)
this.$store.dispatch('setAssignableUsers', board.users)
this.loading = false
this.$store.state.labels = board.labels
})

View File

@@ -35,7 +35,7 @@
</AppSidebarTab>
<AppSidebarTab name="Deleted items" icon="icon-delete">
<DeletedTabSidebard :board="board" />
<DeletedTabSidebar :board="board" />
</AppSidebarTab>
<AppSidebarTab name="Timeline" icon="icon-activity">
@@ -49,7 +49,7 @@
import { mapState } from 'vuex'
import SharingTabSidebard from './SharingTabSidebard'
import TagsTabSidebard from './TagsTabSidebard'
import DeletedTabSidebard from './DeletedTabSidebard'
import DeletedTabSidebar from './DeletedTabSidebar'
import TimelineTabSidebard from './TimelineTabSidebard'
import { AppSidebar, AppSidebarTab } from 'nextcloud-vue'
@@ -60,7 +60,7 @@ export default {
AppSidebarTab,
SharingTabSidebard,
TagsTabSidebard,
DeletedTabSidebard,
DeletedTabSidebar,
TimelineTabSidebard
},
computed: {

View File

@@ -2,11 +2,12 @@
<div>
<h3>{{ t('deck', 'Deleted stacks') }}</h3>
<ul>
<li v-for="deletedStack in deletedStacks" :key="deletedStack.id">
<span class="icon icon-deck" />
<span class="title">{{ deletedStack.title }}</span>
<span class="live-relative-timestamp" />
<button
:title="t('settings', 'Undo')"
class="app-navigation-entry-deleted-button icon-history"
@@ -43,7 +44,7 @@
<script>
import { mapState } from 'vuex'
export default {
name: 'DeletedTabSidebard',
name: 'DeletedTabSidebar',
components: {
},
@@ -63,8 +64,7 @@ export default {
computed: {
...mapState({
deletedStacks: state => state.stack.deletedStacks,
deletedCards: state => state.stack.deletedCards,
currentBoard: state => state.currentBoard
deletedCards: state => state.stack.deletedCards
})
},
@@ -74,7 +74,7 @@ export default {
methods: {
getData() {
this.isLoading = true
this.$store.dispatch('deletedItems', this.currentBoard.id).then(response => {
this.$store.dispatch('deletedItems', this.board.id).then(response => {
this.isLoading = false
})
},