@@ -35,7 +35,7 @@ import { CollectionList } from 'nextcloud-vue-collections'
|
||||
export default {
|
||||
name: 'CollaborationView',
|
||||
components: {
|
||||
CollectionList: CollectionList,
|
||||
CollectionList,
|
||||
},
|
||||
computed: {
|
||||
boardId() {
|
||||
|
||||
@@ -72,7 +72,7 @@ export default {
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
data: function() {
|
||||
data() {
|
||||
return {
|
||||
loading: true,
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
routeTo: function() {
|
||||
routeTo() {
|
||||
return {
|
||||
name: 'board',
|
||||
params: { id: this.board.id },
|
||||
|
||||
@@ -70,7 +70,7 @@ export default {
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
navFilter: function(value) {
|
||||
navFilter(value) {
|
||||
this.$store.commit('setBoardFilter', value)
|
||||
},
|
||||
},
|
||||
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
this.$store.dispatch('fetchAttachments', newCard.id)
|
||||
},
|
||||
},
|
||||
created: function() {
|
||||
created() {
|
||||
this.$store.dispatch('fetchAttachments', this.card.id)
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -96,8 +96,8 @@ export default {
|
||||
const size = 32
|
||||
const avatarUrl = generateUrl('/avatar/{user}/{size}',
|
||||
{
|
||||
user: user,
|
||||
size: size,
|
||||
user,
|
||||
size,
|
||||
})
|
||||
return window.location.protocol + '//' + window.location.host + avatarUrl
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
createBoard(e) {
|
||||
const title = e.currentTarget.childNodes[0].value
|
||||
this.$store.dispatch('createBoard', {
|
||||
title: title,
|
||||
title,
|
||||
color: this.color.substring(1),
|
||||
})
|
||||
this.editing = false
|
||||
|
||||
@@ -123,10 +123,10 @@ export default {
|
||||
}
|
||||
return this.board.color
|
||||
},
|
||||
undoText: function() {
|
||||
undoText() {
|
||||
return t('deck', 'Board {0} deleted', [this.board.title])
|
||||
},
|
||||
routeTo: function() {
|
||||
routeTo() {
|
||||
return {
|
||||
name: 'board',
|
||||
params: { id: this.board.id },
|
||||
|
||||
@@ -84,7 +84,7 @@ export default {
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
boards: function(newVal, prevVal) {
|
||||
boards(newVal, prevVal) {
|
||||
if (this.openOnAddBoards === true && prevVal.length < newVal.length) {
|
||||
this.opened = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user