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
beb16183
Commit
beb16183
authored
1 year ago
by
vkovtun
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-13579: Added other buttons to the panel.
parent
1d8cc704
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!40
SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ui-admin/src/js/common/messages.js
+2
-0
2 additions, 0 deletions
ui-admin/src/js/common/messages.js
ui-admin/src/js/components/database/data-browser/Toolbar.jsx
+14
-3
14 additions, 3 deletions
ui-admin/src/js/components/database/data-browser/Toolbar.jsx
with
16 additions
and
3 deletions
ui-admin/src/js/common/messages.js
+
2
−
0
View file @
beb16183
...
...
@@ -264,6 +264,7 @@ const keys = {
UNSAVED_CHANGES
:
'
UNSAVED_CHANGES
'
,
UPDATE_IF_EXISTS
:
'
UPDATE_IF_EXISTS
'
,
UPDATE_MODE
:
"
UPDATE_MODE
"
,
UPLOAD
:
"
UPLOAD
"
,
URL_TEMPLATE
:
'
URL_TEMPLATE
'
,
USAGES
:
'
USAGES
'
,
USER
:
'
USER
'
,
...
...
@@ -563,6 +564,7 @@ const messages_en = {
[
keys
.
UNSAVED_CHANGES
]:
'
You have unsaved changes
'
,
[
keys
.
UPDATE_IF_EXISTS
]:
'
Update if exists
'
,
[
keys
.
UPDATE_MODE
]:
'
Update Mode
'
,
[
keys
.
UPLOAD
]:
'
Upload
'
,
[
keys
.
URL_TEMPLATE
]:
'
URL Template
'
,
[
keys
.
USAGES
]:
'
Usages
'
,
[
keys
.
USERS
]:
'
Users
'
,
...
...
This diff is collapsed.
Click to expand it.
ui-admin/src/js/components/database/data-browser/Toolbar.jsx
+
14
−
3
View file @
beb16183
import
React
from
'
react
'
import
{
withStyles
}
from
'
@material-ui/core/styles
'
import
messages
from
'
@src/js/common/messages.js
'
import
Container
from
'
@src/js/components/common/form/Container.jsx
'
import
Button
from
'
@src/js/components/common/form/Button.jsx
'
import
ViewComfyIcon
from
'
@material-ui/icons/ViewComfy
'
import
ViewListIcon
from
'
@material-ui/icons/ViewList
'
import
PublishIcon
from
'
@material-ui/icons/Publish
'
import
SettingsIcon
from
'
@material-ui/icons/Settings
'
import
SearchIcon
from
'
@material-ui/icons/Search
'
import
InfoIcon
from
'
@material-ui/icons/InfoOutlined
'
import
CreateNewFolderIcon
from
'
@material-ui/icons/CreateNewFolderOutlined
'
const
styles
=
theme
=>
({
containerDefault
:
{
...
...
@@ -16,11 +22,16 @@ const styles = theme => ({
class
Toolbar
extends
React
.
Component
{
render
()
{
const
{
viewType
,
onViewTypeChange
}
=
this
.
props
const
{
viewType
,
onViewTypeChange
,
classes
}
=
this
.
props
return
(
<
Container
>
{
viewType
===
'
list
'
&&
<
Button
label
=
{
<
ViewComfyIcon
/>
}
onClick
=
{
()
=>
onViewTypeChange
(
'
grid
'
)
}
/>
}
{
viewType
===
'
grid
'
&&
<
Button
label
=
{
<
ViewListIcon
/>
}
onClick
=
{
()
=>
onViewTypeChange
(
'
list
'
)
}
/>
}
<
Button
styles
=
{
{
root
:
classes
.
button
}
}
label
=
{
<
CreateNewFolderIcon
/>
}
/>
<
Button
styles
=
{
{
root
:
classes
.
button
}
}
label
=
{
<
InfoIcon
/>
}
/>
<
Button
styles
=
{
{
root
:
classes
.
button
}
}
label
=
{
<
SearchIcon
/>
}
/>
{
viewType
===
'
list
'
&&
<
Button
styles
=
{
{
root
:
classes
.
button
}
}
label
=
{
<
ViewComfyIcon
/>
}
onClick
=
{
()
=>
onViewTypeChange
(
'
grid
'
)
}
/>
}
{
viewType
===
'
grid
'
&&
<
Button
styles
=
{
{
root
:
classes
.
button
}
}
label
=
{
<
ViewListIcon
/>
}
onClick
=
{
()
=>
onViewTypeChange
(
'
list
'
)
}
/>
}
<
Button
styles
=
{
{
root
:
classes
.
button
}
}
label
=
{
<
SettingsIcon
/>
}
/>
<
Button
styles
=
{
{
root
:
classes
.
button
}
}
label
=
{
<><
PublishIcon
/>
{
messages
.
get
(
messages
.
UPLOAD
)
}
</>
}
/>
</
Container
>
)
}
...
...
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