Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide deprecated projects in sidebar and card details by default #3984

Merged
merged 1 commit into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/board/SharingTabSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</li>
</ul>

<CollectionList v-if="board.id"
<CollectionList v-if="projectsEnabled && board.id"
:id="`${board.id}`"
:name="board.title"
type="deck" />
Expand All @@ -74,6 +74,7 @@ import { CollectionList } from 'nextcloud-vue-collections'
import { mapGetters, mapState } from 'vuex'
import { getCurrentUser } from '@nextcloud/auth'
import { showError, showSuccess } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
import debounce from 'lodash/debounce'

export default {
Expand All @@ -99,6 +100,7 @@ export default {
addAcl: null,
addAclForAPI: null,
newOwner: null,
projectsEnabled: loadState('core', 'projects_enabled', false),
}
},
computed: {
Expand Down
4 changes: 3 additions & 1 deletion src/components/card/CardSidebarTabDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
</div>
</div>

<div class="section-wrapper">
<div v-if="projectsEnabled" class="section-wrapper">
<CollectionList v-if="card.id"
:id="`${card.id}`"
:name="card.title"
Expand All @@ -126,6 +126,7 @@
import { mapState, mapGetters } from 'vuex'
import moment from '@nextcloud/moment'
import { Avatar, Actions, ActionButton, Multiselect, DatetimePicker } from '@nextcloud/vue'
import { loadState } from '@nextcloud/initial-state'

import { CollectionList } from 'nextcloud-vue-collections'
import Color from '../../mixins/color'
Expand Down Expand Up @@ -163,6 +164,7 @@ export default {
copiedCard: null,
assignedLabels: null,
locale: getLocale(),
projectsEnabled: loadState('core', 'projects_enabled', false),
lang: {
days: getDayNamesMin(),
months: getMonthNamesShort(),
Expand Down