Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
fd0daaca
Commit
fd0daaca
authored
Mar 08, 2019
by
Piotr Gawron
Browse files
edit/remove project button is disabled until project is uploaded
parent
208b6e22
Pipeline
#9167
passed with stage
in 8 minutes and 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
fd0daaca
...
...
@@ -10,6 +10,8 @@ minerva (12.3.0~alpha.0) unstable; urgency=low
*
Small
improvement
:
Plugin
API
allows
to
show
/
hide
overview
images
(#
702
)
*
Small
improvement
:
Plugin
API
allows
to
trigger
search
on
the
map
(#
702
)
*
Small
improvement
:
Plugin
API
allows
to
clear
search
results
on
map
(#
702
)
*
Small
improvement
:
edit
/
remove
project
button
is
disabled
until
project
is
uploaded
(#
683
)
*
Bug
fix
:
progress
bar
of
gene
genome
mapping
upload
is
refreshing
properly
(#
728
)
...
...
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
View file @
fd0daaca
...
...
@@ -237,9 +237,11 @@ MapsAdminPanel.prototype.projectToTableRow = function (project, row, user) {
row
[
4
]
=
status
;
var
disabled
=
"
disabled
"
;
if
(
user
.
hasPrivilege
(
self
.
getConfiguration
().
getPrivilegeType
(
PrivilegeType
.
PROJECT_MANAGEMENT
)))
{
if
(
user
.
hasPrivilege
(
self
.
getConfiguration
().
getPrivilegeType
(
PrivilegeType
.
PROJECT_MANAGEMENT
))
&&
(
status
.
indexOf
(
"
Ok
"
)
===
0
||
status
.
indexOf
(
"
Failure
"
)
===
0
))
{
disabled
=
""
;
}
row
[
5
]
=
"
<button name='showEditDialog' data='
"
+
project
.
getProjectId
()
+
"
'
"
+
disabled
+
"
><i class='fa fa-edit' style='font-size:17px'></i></button>
"
;
if
(
self
.
getConfiguration
().
getOption
(
ConfigurationType
.
DEFAULT_MAP
).
getValue
()
===
projectId
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment