-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change will add an extension registry for activity stream toolbar kudos action.
- Loading branch information
1 parent
521bca7
commit 00abc51
Showing
6 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
kudos-webapps/src/main/webapp/vue-app/kudos/components/SendKudosToolbarAction.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<v-btn | ||
:ripple="false" | ||
class="d-flex flex-row align-center py-2" | ||
text | ||
@click="openSendKudosDrawer"> | ||
<v-icon | ||
color="primary" | ||
size="27"> | ||
fa-award | ||
</v-icon> | ||
<v-span class="body-2 font-weight-bold ms-5 mt-1 dark-grey-color"> | ||
{{ $t('kudos.title') }} | ||
</v-span> | ||
</v-btn> | ||
</template> | ||
<script> | ||
export default { | ||
methods: { | ||
openSendKudosDrawer() { | ||
document.dispatchEvent(new CustomEvent('exo-kudos-open-send-modal', {detail: { | ||
id: eXo.env.portal.userIdentityId, | ||
type: 'USER_PROFILE', | ||
parentId: '', | ||
owner: eXo.env.portal.userName, | ||
spaceURL: eXo.env.portal.spaceUrl, | ||
readOnlySpace: true | ||
}})); | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters