Hide deprecated projects in sidebar and card details by default
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<CollectionList v-if="board.id"
|
<CollectionList v-if="projectsEnabled && board.id"
|
||||||
:id="`${board.id}`"
|
:id="`${board.id}`"
|
||||||
:name="board.title"
|
:name="board.title"
|
||||||
type="deck" />
|
type="deck" />
|
||||||
@@ -74,6 +74,7 @@ import { CollectionList } from 'nextcloud-vue-collections'
|
|||||||
import { mapGetters, mapState } from 'vuex'
|
import { mapGetters, mapState } from 'vuex'
|
||||||
import { getCurrentUser } from '@nextcloud/auth'
|
import { getCurrentUser } from '@nextcloud/auth'
|
||||||
import { showError, showSuccess } from '@nextcloud/dialogs'
|
import { showError, showSuccess } from '@nextcloud/dialogs'
|
||||||
|
import { loadState } from '@nextcloud/initial-state'
|
||||||
import debounce from 'lodash/debounce'
|
import debounce from 'lodash/debounce'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -99,6 +100,7 @@ export default {
|
|||||||
addAcl: null,
|
addAcl: null,
|
||||||
addAclForAPI: null,
|
addAclForAPI: null,
|
||||||
newOwner: null,
|
newOwner: null,
|
||||||
|
projectsEnabled: loadState('core', 'projects_enabled', false),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -111,7 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section-wrapper">
|
<div v-if="projectsEnabled" class="section-wrapper">
|
||||||
<CollectionList v-if="card.id"
|
<CollectionList v-if="card.id"
|
||||||
:id="`${card.id}`"
|
:id="`${card.id}`"
|
||||||
:name="card.title"
|
:name="card.title"
|
||||||
@@ -126,6 +126,7 @@
|
|||||||
import { mapState, mapGetters } from 'vuex'
|
import { mapState, mapGetters } from 'vuex'
|
||||||
import moment from '@nextcloud/moment'
|
import moment from '@nextcloud/moment'
|
||||||
import { Avatar, Actions, ActionButton, Multiselect, DatetimePicker } from '@nextcloud/vue'
|
import { Avatar, Actions, ActionButton, Multiselect, DatetimePicker } from '@nextcloud/vue'
|
||||||
|
import { loadState } from '@nextcloud/initial-state'
|
||||||
|
|
||||||
import { CollectionList } from 'nextcloud-vue-collections'
|
import { CollectionList } from 'nextcloud-vue-collections'
|
||||||
import Color from '../../mixins/color'
|
import Color from '../../mixins/color'
|
||||||
@@ -163,6 +164,7 @@ export default {
|
|||||||
copiedCard: null,
|
copiedCard: null,
|
||||||
assignedLabels: null,
|
assignedLabels: null,
|
||||||
locale: getLocale(),
|
locale: getLocale(),
|
||||||
|
projectsEnabled: loadState('core', 'projects_enabled', false),
|
||||||
lang: {
|
lang: {
|
||||||
days: getDayNamesMin(),
|
days: getDayNamesMin(),
|
||||||
months: getMonthNamesShort(),
|
months: getMonthNamesShort(),
|
||||||
|
|||||||
Reference in New Issue
Block a user