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
1f550364
There was a problem fetching the pipeline mini graph.
Commit
1f550364
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
frontend doesn't allow to remove default project
parent
749399e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
+5
-0
5 additions, 0 deletions
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
with
5 additions
and
0 deletions
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
+
5
−
0
View file @
1f550364
...
...
@@ -7,6 +7,7 @@ var AddProjectDialog = require('./AddProjectDialog');
var
EditProjectDialog
=
require
(
'
./EditProjectDialog
'
);
var
LogListDialog
=
require
(
'
./LogListDialog
'
);
var
PrivilegeType
=
require
(
'
../../map/data/PrivilegeType
'
);
var
ConfigurationType
=
require
(
'
../../ConfigurationType
'
);
var
UserPreferences
=
require
(
'
../../map/data/UserPreferences
'
);
// noinspection JSUnusedLocalSymbols
...
...
@@ -208,6 +209,10 @@ MapsAdminPanel.prototype.projectToTableRow = function (project, row, user) {
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
)
{
disabled
=
"
disabled
"
;
}
row
[
6
]
=
"
<button name='removeProject' data='
"
+
project
.
getProjectId
()
+
"
'
"
+
disabled
+
"
><i class='fa fa-trash-o' style='font-size:17px'></button>
"
;
return
row
;
...
...
This diff is collapsed.
Click to expand it.
Piotr Gawron
@piotr.gawron
mentioned in issue
#475 (closed)
·
6 years ago
mentioned in issue
#475 (closed)
mentioned in issue #475
Toggle commit list
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