@@ -30,9 +30,8 @@
|
|||||||
({{ t('deck', 'Archived cards') }})
|
({{ t('deck', 'Archived cards') }})
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="dashboardName" class="board-title">
|
<div v-if="overviewName" class="board-title">
|
||||||
<!-- <div :style="{backgroundColor: '#' + board.color}" class="board-bullet" /> -->
|
<h2><a href="#">{{ overviewName }}</a></h2>
|
||||||
<h2><a href="#">{{ dashboardName }}</a></h2>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="board" class="board-actions">
|
<div v-if="board" class="board-actions">
|
||||||
<div v-if="canManage && !showArchived && !board.archived"
|
<div v-if="canManage && !showArchived && !board.archived"
|
||||||
@@ -210,7 +209,7 @@ export default {
|
|||||||
required: false,
|
required: false,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
dashboardName: {
|
overviewName: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false,
|
required: false,
|
||||||
default: null,
|
default: null,
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openCard() {
|
openCard() {
|
||||||
const boardId = this.card ? this.card.boardId : this.$route.params.id
|
const boardId = this.card && this.card.boardId ? this.card.boardId : this.$route.params.id
|
||||||
this.$router.push({ name: 'card', params: { id: boardId, cardId: this.card.id } }).catch(() => {})
|
this.$router.push({ name: 'card', params: { id: boardId, cardId: this.card.id } }).catch(() => {})
|
||||||
},
|
},
|
||||||
startEditing(card) {
|
startEditing(card) {
|
||||||
|
|||||||
@@ -72,10 +72,9 @@
|
|||||||
import axios from '@nextcloud/axios'
|
import axios from '@nextcloud/axios'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import ClickOutside from 'vue-click-outside'
|
import ClickOutside from 'vue-click-outside'
|
||||||
import { AppNavigation as AppNavigationVue, AppNavigationSettings, Multiselect } from '@nextcloud/vue'
|
import { AppNavigation as AppNavigationVue, AppNavigationItem, AppNavigationSettings, Multiselect } from '@nextcloud/vue'
|
||||||
import AppNavigationAddBoard from './AppNavigationAddBoard'
|
import AppNavigationAddBoard from './AppNavigationAddBoard'
|
||||||
import AppNavigationBoardCategory from './AppNavigationBoardCategory'
|
import AppNavigationBoardCategory from './AppNavigationBoardCategory'
|
||||||
import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem'
|
|
||||||
import { loadState } from '@nextcloud/initial-state'
|
import { loadState } from '@nextcloud/initial-state'
|
||||||
import { generateUrl, generateOcsUrl } from '@nextcloud/router'
|
import { generateUrl, generateOcsUrl } from '@nextcloud/router'
|
||||||
|
|
||||||
@@ -107,15 +106,6 @@ export default {
|
|||||||
groupLimit: [],
|
groupLimit: [],
|
||||||
groupLimitDisabled: true,
|
groupLimitDisabled: true,
|
||||||
canCreate: canCreateState,
|
canCreate: canCreateState,
|
||||||
allDashboards: [{
|
|
||||||
id: 1,
|
|
||||||
title: 'due',
|
|
||||||
color: '999999',
|
|
||||||
acl: [],
|
|
||||||
permissions: {
|
|
||||||
PERMISSION_MANAGE: false,
|
|
||||||
},
|
|
||||||
}],
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -123,11 +113,9 @@ export default {
|
|||||||
'noneArchivedBoards',
|
'noneArchivedBoards',
|
||||||
'archivedBoards',
|
'archivedBoards',
|
||||||
'sharedBoards',
|
'sharedBoards',
|
||||||
// 'dashboards',
|
|
||||||
]),
|
]),
|
||||||
isAdmin() {
|
isAdmin() {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
//return oc_isadmin
|
|
||||||
return OC.isUserAdmin()
|
return OC.isUserAdmin()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const FILTER_ASSIGNED = 'assigned'
|
|||||||
|
|
||||||
const SUPPORTED_FILTERS = [
|
const SUPPORTED_FILTERS = [
|
||||||
FILTER_ASSIGNED,
|
FILTER_ASSIGNED,
|
||||||
FILTER_DUE
|
FILTER_DUE,
|
||||||
]
|
]
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -105,7 +105,7 @@ export default {
|
|||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data: function() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,9 +96,6 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
clearCards(state) {
|
|
||||||
state.cards = []
|
|
||||||
},
|
|
||||||
addCard(state, card) {
|
addCard(state, card) {
|
||||||
card.labels = card.labels || []
|
card.labels = card.labels || []
|
||||||
card.assignedUsers = card.assignedUsers || []
|
card.assignedUsers = card.assignedUsers || []
|
||||||
|
|||||||
@@ -32,12 +32,6 @@ export default {
|
|||||||
assignedCards: [],
|
assignedCards: [],
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
dueOverdue: state => {
|
|
||||||
return state.withDue.filter((card) => {
|
|
||||||
return card
|
|
||||||
})
|
|
||||||
|
|
||||||
},
|
|
||||||
withDueDashboard: state => {
|
withDueDashboard: state => {
|
||||||
return state.withDue
|
return state.withDue
|
||||||
},
|
},
|
||||||
@@ -52,7 +46,6 @@ export default {
|
|||||||
setAssignedCards(state, assignedCards) {
|
setAssignedCards(state, assignedCards) {
|
||||||
state.assignedCards = assignedCards
|
state.assignedCards = assignedCards
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
async loadDueDashboard({ commit }) {
|
async loadDueDashboard({ commit }) {
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
async loadStacks({ commit }, boardId) {
|
async loadStacks({ commit }, boardId) {
|
||||||
commit('clearCards')
|
|
||||||
let call = 'loadStacks'
|
let call = 'loadStacks'
|
||||||
if (this.state.showArchived === true) {
|
if (this.state.showArchived === true) {
|
||||||
call = 'loadArchivedStacks'
|
call = 'loadArchivedStacks'
|
||||||
|
|||||||
Reference in New Issue
Block a user