diff --git a/src/components/board/Board.vue b/src/components/board/Board.vue
index 5b43205a0..3d18bdfa2 100644
--- a/src/components/board/Board.vue
+++ b/src/components/board/Board.vue
@@ -23,26 +23,29 @@
-
-
-
{{ t('deck', 'Loading board') }}
-
-
-
-
-
-
-
-
-
-
-
-
{{ t('deck', 'Board not found') }}
-
-
+
+
+
+
{{ t('deck', 'Loading board') }}
+
+
+
+
+
+
+
+
+
+
+
+
{{ t('deck', 'Board not found') }}
+
+
+
+
@@ -102,8 +105,12 @@ export default {
methods: {
async fetchData() {
this.loading = true
- await this.$store.dispatch('loadBoardById', this.id)
- await this.$store.dispatch('loadStacks', this.id)
+ try {
+ await this.$store.dispatch('loadBoardById', this.id)
+ await this.$store.dispatch('loadStacks', this.id)
+ } catch (e) {
+ console.error(e)
+ }
this.loading = false
},
@@ -125,6 +132,8 @@ export default {
diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue
index 8fa487dcd..6485581a6 100644
--- a/src/components/card/CardSidebar.vue
+++ b/src/components/card/CardSidebar.vue
@@ -236,7 +236,7 @@ export default {
descriptionSaveTimeout: null,
descriptionSaving: false,
hasActivity: capabilities && capabilities.activity,
- hasComments: !!OC.appswebroots['comments']
+ hasComments: !!OC.appswebroots['comments'],
}
},
computed: {
diff --git a/src/components/cards/CardItem.vue b/src/components/cards/CardItem.vue
index ef02af1d1..d8f2a219d 100644
--- a/src/components/cards/CardItem.vue
+++ b/src/components/cards/CardItem.vue
@@ -48,16 +48,21 @@
-
- {{ relativeDate }}
-
+
+
+ {{ relativeDate }}
+
+
-
+
@@ -132,6 +137,13 @@ export default {
return moment(this.card.duedate).format('LLLL')
},
},
+ watch: {
+ currentCard(newValue) {
+ if (newValue) {
+ this.$nextTick(() => this.$el.scrollIntoView())
+ }
+ },
+ },
methods: {
openCard() {
this.$router.push({ name: 'card', params: { cardId: this.id } })
@@ -154,6 +166,8 @@ export default {