Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
fd0daaca
Commit
fd0daaca
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
edit/remove project button is disabled until project is uploaded
parent
208b6e22
No related branches found
No related tags found
1 merge request
!693
Resolve "Please disable Edit/Remove icons during uploading/removing a project"
Pipeline
#9167
passed
6 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
+3
-1
3 additions, 1 deletion
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
with
5 additions
and
1 deletion
CHANGELOG
+
2
−
0
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)
...
...
This diff is collapsed.
Click to expand it.
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
+
3
−
1
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
)
{
...
...
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