Skip to content

Commit

Permalink
feat(@dpc-sdp/ripple-ui-core): add file size to download event
Browse files Browse the repository at this point in the history
  • Loading branch information
David Featherston committed Jun 28, 2023
1 parent eb42f38 commit e09a114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ripple-ui-core/src/components/file/RplFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const { emitRplEvent } = useRippleEvent('rpl-document', emit)
const onDownload = ({ id, action }) => {
emitRplEvent(
'download',
{ id, action, label: props.name, type: props.extension },
{ id, action, label: props.name, type: props.extension, size: props.size },
{ global: true }
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-ui-core/src/composables/useRippleEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type rplEventPayload = {
action?: string
name?: string
label?: string
value?: string
value?: any
contextId?: string
contextName?: string
[key: string]: unknown
Expand Down

0 comments on commit e09a114

Please sign in to comment.