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
Commits
e1a173ca
Commit
e1a173ca
authored
3 years ago
by
Steinwender, Tamara
Browse files
Options
Downloads
Patches
Plain Diff
Remove select all bug
parent
6ad718c5
No related branches found
No related tags found
No related merge requests found
Pipeline
#52557
passed
3 years ago
Stage: test
Stage: deploy
Stage: e2e
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/file-handling/src/clipboard.js
+2
-0
2 additions, 0 deletions
packages/file-handling/src/clipboard.js
packages/file-handling/src/nextcloud-file-picker.js
+4
-2
4 additions, 2 deletions
packages/file-handling/src/nextcloud-file-picker.js
with
6 additions
and
2 deletions
packages/file-handling/src/clipboard.js
+
2
−
0
View file @
e1a173ca
...
...
@@ -321,6 +321,8 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) {
* @returns {boolean}
*/
checkFileType
(
file
)
{
if
(
this
.
allowedMimeTypes
===
''
)
return
true
;
// check if file is allowed
const
[
fileMainType
,
fileSubType
]
=
file
.
type
.
split
(
'
/
'
);
const
mimeTypes
=
this
.
allowedMimeTypes
.
split
(
'
,
'
);
...
...
This diff is collapsed.
Click to expand it.
packages/file-handling/src/nextcloud-file-picker.js
+
4
−
2
View file @
e1a173ca
...
...
@@ -33,7 +33,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
this
.
directoryPath
=
''
;
this
.
webDavClient
=
null
;
this
.
tabulatorTable
=
null
;
this
.
allowedMimeTypes
=
'
*/*
'
;
this
.
allowedMimeTypes
=
''
;
this
.
directoriesOnly
=
false
;
this
.
maxSelectedItems
=
true
;
this
.
loading
=
false
;
...
...
@@ -335,7 +335,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
this.tabulatorTable.options.selectableRangeMode = "click";
}*/
if
(
typeof
this
.
allowedMimeTypes
!==
'
undefined
'
&&
!
this
.
directoriesOnly
)
{
if
(
typeof
this
.
allowedMimeTypes
!==
'
undefined
'
&&
this
.
allowedMimeTypes
!==
''
&&
!
this
.
directoriesOnly
)
{
this
.
tabulatorTable
.
setFilter
(
this
.
checkFileType
,
this
.
allowedMimeTypes
);
}
// comment this in to show only directories in filesink
...
...
@@ -381,6 +381,8 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
* @param filterParams
*/
checkFileType
(
data
,
filterParams
)
{
if
(
filterParams
===
''
)
return
true
;
if
(
typeof
data
.
mime
===
'
undefined
'
)
{
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment