Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
61caaa30
Commit
61caaa30
authored
2 years ago
by
piotr.kupczyk@id.ethz.ch
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-13152 : Exports for master data and metadata UI - remove unused code
parent
c8ff9969
No related branches found
No related tags found
1 merge request
!40
SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis_ng_ui/src/js/components/common/grid/GridController.js
+4
-10
4 additions, 10 deletions
...bis_ng_ui/src/js/components/common/grid/GridController.js
with
4 additions
and
10 deletions
openbis_ng_ui/src/js/components/common/grid/GridController.js
+
4
−
10
View file @
61caaa30
...
...
@@ -1077,7 +1077,7 @@ export default class GridController {
)
}
function
_exportColumnsFromData
(
namePrefix
,
rows
,
columns
)
{
function
_exportColumnsFromData
(
rows
,
columns
)
{
const
arrayOfRowArrays
=
[]
const
headers
=
columns
.
map
(
column
=>
column
.
name
)
...
...
@@ -1137,14 +1137,11 @@ export default class GridController {
var
data
=
[]
var
columns
=
[]
var
prefix
=
''
if
(
exportOptions
.
columns
===
GridExportOptions
.
ALL_COLUMNS
)
{
columns
=
this
.
getAllColumns
()
prefix
+=
'
AllColumns
'
}
else
if
(
exportOptions
.
columns
===
GridExportOptions
.
VISIBLE_COLUMNS
)
{
columns
=
this
.
getVisibleColumns
()
prefix
+=
'
VisibleColumns
'
}
else
{
throw
Error
(
'
Unsupported columns option:
'
+
exportOptions
.
columns
)
}
...
...
@@ -1165,18 +1162,15 @@ export default class GridController {
data
=
loadedResult
.
rows
}
prefix
+=
'
AllPages
'
_exportColumnsFromData
(
prefix
,
data
,
columns
)
_exportColumnsFromData
(
data
,
columns
)
}
else
if
(
exportOptions
.
rows
===
GridExportOptions
.
CURRENT_PAGE
)
{
data
=
state
.
rows
prefix
+=
'
CurrentPage
'
_exportColumnsFromData
(
prefix
,
data
,
columns
)
_exportColumnsFromData
(
data
,
columns
)
}
else
if
(
exportOptions
.
rows
===
GridExportOptions
.
SELECTED_ROWS
)
{
data
=
Object
.
values
(
state
.
multiselectedRows
).
map
(
selectedRow
=>
selectedRow
.
data
)
prefix
+=
'
SelectedRows
'
_exportColumnsFromData
(
prefix
,
data
,
columns
)
_exportColumnsFromData
(
data
,
columns
)
}
else
{
throw
Error
(
'
Unsupported rows option:
'
+
exportOptions
.
columns
)
}
...
...
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