Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Compare revisions
f13d7e9cb668a41ce38430b343b701a1038acef6 to 18901b3baf6a317fd98f6d995ada35f0101f5686
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dbp/web-components/toolkit
Select target project
No results found
18901b3baf6a317fd98f6d995ada35f0101f5686
Select Git revision
Branches
advertisement
automagic
dbp-translation-component
demo
demo-file-handling
favorites-and-recent-files
icon-set-mapping
lit2
main
person-select-custom
port-i18next-parser
publish
remove-sentry
renovate/lock-file-maintenance
revert-6c632dc6
wc-part
wip-cleanup
17 results
Swap
Target
dbp/web-components/toolkit
Select target project
987FCF504483CBC8/toolkit
1 result
f13d7e9cb668a41ce38430b343b701a1038acef6
Select Git revision
Branches
advertisement
automagic
dbp-translation-component
demo
demo-file-handling
favorites-and-recent-files
icon-set-mapping
lit2
main
person-select-custom
port-i18next-parser
publish
remove-sentry
renovate/lock-file-maintenance
revert-6c632dc6
wc-part
wip-cleanup
17 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Add Nextcloud upload/download event tracking
· 18901b3b
Bekerle, Patrizio
authored
4 years ago
Unverified
18901b3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/file-handling/src/dbp-nextcloud-file-picker.js
+12
-0
12 additions, 0 deletions
packages/file-handling/src/dbp-nextcloud-file-picker.js
with
12 additions
and
0 deletions
packages/file-handling/src/dbp-nextcloud-file-picker.js
View file @
18901b3b
...
...
@@ -441,6 +441,12 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
const
event
=
new
CustomEvent
(
"
dbp-nextcloud-file-picker-number-files
"
,
{
"
detail
"
:
data
,
bubbles
:
true
,
composed
:
true
});
this
.
dispatchEvent
(
event
);
if
(
files
.
length
>
0
)
{
this
.
sendSetPropertyEvent
(
'
analytics-event
'
,
{
category
:
'
FileHandlingNextcloud
'
,
action
:
'
DownloadFiles
'
,
name
:
files
.
length
});
}
}
/**
...
...
@@ -509,6 +515,12 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
this
.
forAll
=
false
;
this
.
setRepeatForAllConflicts
();
this
.
uploadFile
(
directory
);
if
(
files
.
length
>
0
)
{
this
.
sendSetPropertyEvent
(
'
analytics-event
'
,
{
category
:
'
FileHandlingNextcloud
'
,
action
:
'
UploadFiles
'
,
name
:
files
.
length
});
}
}
/**
...
...
This diff is collapsed.
Click to expand it.