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
3e95698a
Commit
3e95698a
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
refreshing of projects implemented
parent
f5587680
No related branches found
No related tags found
2 merge requests
!115
Resolve "admin panel should use API"
,
!114
Resolve "admin panel should use API"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
+4
-1
4 additions, 1 deletion
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
frontend-js/src/test/js/gui/admin/ElementExportPanel-test.js
+32
-0
32 additions, 0 deletions
frontend-js/src/test/js/gui/admin/ElementExportPanel-test.js
with
36 additions
and
1 deletion
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
+
4
−
1
View file @
3e95698a
...
...
@@ -166,7 +166,10 @@ MapsAdminPanel.prototype.onAddClicked = function() {
return
Promise
.
reject
(
new
Error
(
"
Not implemented
"
));
};
MapsAdminPanel
.
prototype
.
onRefreshClicked
=
function
()
{
return
Promise
.
reject
(
new
Error
(
"
Not implemented
"
));
var
self
=
this
;
return
ServerConnector
.
getProjects
(
true
).
then
(
function
(
projects
){
return
self
.
setProjects
(
projects
);
});
};
MapsAdminPanel
.
prototype
.
showEditDialog
=
function
(
id
)
{
return
Promise
.
reject
(
new
Error
(
"
Not implemented
"
));
...
...
This diff is collapsed.
Click to expand it.
frontend-js/src/test/js/gui/admin/ElementExportPanel-test.js
0 → 100644
+
32
−
0
View file @
3e95698a
"
use strict
"
;
/* exported logger */
var
MapsAdminPanel
=
require
(
'
../../../../main/js/gui/admin/MapsAdminPanel
'
);
var
GuiMessageError
=
require
(
'
../../../../main/js/gui/GuiMessageError
'
);
var
MiriamType
=
require
(
'
../../../../main/js/map/data/MiriamType
'
);
var
logger
=
require
(
'
../../logger
'
);
var
assert
=
require
(
'
assert
'
);
describe
(
'
MapsAdminPanel
'
,
function
()
{
it
(
'
refresh
'
,
function
()
{
var
mapTab
;
var
project
;
return
ServerConnector
.
getProject
().
then
(
function
(
result
)
{
project
=
result
;
return
ServerConnector
.
getConfiguration
();
}).
then
(
function
(
configuration
)
{
mapTab
=
new
MapsAdminPanel
({
element
:
testDiv
,
project
:
project
,
configuration
:
configuration
,
});
return
mapTab
.
init
();
}).
then
(
function
()
{
return
mapTab
.
onRefreshClicked
();
});
});
});
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