Skip to content

Commit

Permalink
feat: Adjust the CTAs display from the general stream - MEED-2073 - M…
Browse files Browse the repository at this point in the history
…eeds-io/MIPs#54 (#351)

This change will display the composer send kudos extensions when only the user is in the space stream.
  • Loading branch information
MayTekayaa committed Sep 12, 2023
1 parent 7bb21f0 commit 9db241a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions kudos-webapps/src/main/webapp/vue-app/js/Kudos.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,18 @@ export function registerOverviewExtension() {
}

export function registerComposerExtension() {
extensionRegistry.registerComponent('ComposerAction', 'composer-action-item', {
id: 'sendKudosButton',
vueComponent: Vue.options.components['send-kudos-composer'],
rank: 1,
});
extensionRegistry.registerComponent('ActivityToolbarAction', 'activity-toolbar-action', {
id: 'sendKudosToolbarButton',
vueComponent: Vue.options.components['send-kudos-toolbar-action'],
rank: 10,
});
if (eXo.env.portal.spaceGroup?.length) {
extensionRegistry.registerComponent('ComposerAction', 'composer-action-item', {
id: 'sendKudosButton',
vueComponent: Vue.options.components['send-kudos-composer'],
rank: 1,
});
extensionRegistry.registerComponent('ActivityToolbarAction', 'activity-toolbar-action', {
id: 'sendKudosToolbarButton',
vueComponent: Vue.options.components['send-kudos-toolbar-action'],
rank: 10,
});
}
}

export function registerFavoriteExtensions(title) {
Expand Down

0 comments on commit 9db241a

Please sign in to comment.