Skip to content
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/teams-main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* extracted by css-entry-points-plugin */
@import './main-BSCQ0h7k.chunk.css';
@import './main-BQ6Uu2t4.chunk.css';
@import './_plugin-vue_export-helper-Ks0gkIDB.chunk.css';
@import './logger-B4NWMygB.chunk.css';
@import './NcActionRouter-vYFtIOzD-BuuqIKuh.chunk.css';
Expand Down
12 changes: 6 additions & 6 deletions js/teams-main.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/teams-main.mjs.map

Large diffs are not rendered by default.

30 changes: 28 additions & 2 deletions src/teams/team-page/components/CircleDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,17 @@ export default {
apiPath: 'calendar',
enabled: enabledApps.calendar !== undefined,
},
].filter((resource) => resource.enabled)
},
{
id: 'deck',
label: t('circles', 'Deck board'),
inputLabel: t('circles', 'New Deck board'),
placeholder: t('circles', 'Board name'),
icon: 'ViewDashboardIcon',
apiPath: 'deck',
enabled: enabledApps.deck !== undefined,
}
]
}
},

watch: {
Expand Down Expand Up @@ -724,6 +733,19 @@ export default {
break
}

case 'deck': {
const deckUrl = generateOcsUrl('/apps/deck/api/v1.0/boards/team')
const deckResponse = await axios.post(deckUrl, {
title: name,
teamId: this.circle.id,
})
resourceId = deckResponse.data.ocs.data.id
if (!resourceId) {
throw new Error('Failed to get board ID from creation response')
}
break
}

default: {
showError(t('circles', 'Unknown resource type'))
return
Expand Down Expand Up @@ -795,6 +817,10 @@ export default {
break
}

case 'deck': {
break
}

case 'calendar': {
if (!this.createdCalendar || !this.createdCalendar.share) {
throw new Error('No calendar object available for sharing')
Expand Down
Loading