Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
5550bd10
Commit
5550bd10
authored
Feb 09, 2017
by
Jason Song
Committed by
GitHub
Feb 09, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #537 from lepdou/close_nameapce
close/open namespace content
parents
d3e0fdb7
e19b7f95
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
2 deletions
+15
-2
config.html
apollo-portal/src/main/resources/static/config.html
+1
-1
namespace-panel-directive.js
...ces/static/scripts/directive/namespace-panel-directive.js
+14
-1
namespace-panel-branch-tab.html
...es/static/views/component/namespace-panel-branch-tab.html
+0
-0
namespace-panel-master-tab.html
...es/static/views/component/namespace-panel-master-tab.html
+0
-0
No files found.
apollo-portal/src/main/resources/static/config.html
View file @
5550bd10
...
...
@@ -81,7 +81,7 @@
<td
ng-bind=
"appBaseInfo.ownerName"
></td>
</tr>
<tr>
<th>
Email
:
</th>
<th>
邮箱
:
</th>
<td>
<small
ng-bind=
"appBaseInfo.ownerEmail"
></small>
</td>
...
...
apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js
View file @
5550bd10
...
...
@@ -88,7 +88,8 @@ function directive($window, toastr, AppUtil, EventManager, PermissionService, Na
namespace
.
isPublic
?
namespace
.
parentAppId
!=
namespace
.
baseInfo
.
appId
:
false
;
namespace
.
displayControl
=
{
currentOperateBranch
:
'master'
,
showSearchInput
:
false
showSearchInput
:
false
,
show
:
true
};
namespace
.
viewItems
=
namespace
.
items
;
namespace
.
isPropertiesFormat
=
namespace
.
format
==
'properties'
;
...
...
@@ -99,6 +100,7 @@ function directive($window, toastr, AppUtil, EventManager, PermissionService, Na
namespace
.
allInstancesPage
=
0
;
namespace
.
commitChangeBtnDisabled
=
false
;
generateNamespaceId
(
namespace
);
initNamespaceBranch
(
namespace
);
initNamespaceViewName
(
namespace
);
initNamespaceLock
(
namespace
);
...
...
@@ -131,7 +133,11 @@ function directive($window, toastr, AppUtil, EventManager, PermissionService, Na
namespace
.
branch
.
latestReleaseInstancesPage
=
0
;
namespace
.
branch
.
instanceViewType
=
namespace_instance_view_type
.
LATEST_RELEASE
;
namespace
.
branch
.
hasLoadInstances
=
false
;
namespace
.
branch
.
displayControl
=
{
show
:
true
};
generateNamespaceId
(
namespace
.
branch
);
initBranchItems
(
namespace
.
branch
);
initRules
(
namespace
.
branch
);
loadInstanceInfo
(
namespace
.
branch
);
...
...
@@ -201,6 +207,10 @@ function directive($window, toastr, AppUtil, EventManager, PermissionService, Na
}
}
function
generateNamespaceId
(
namespace
)
{
namespace
.
id
=
Math
.
random
().
toString
(
36
).
substr
(
2
);
}
function
initPermission
(
namespace
)
{
PermissionService
.
has_modify_namespace_permission
(
...
...
@@ -338,7 +348,10 @@ function directive($window, toastr, AppUtil, EventManager, PermissionService, Na
function
switchBranch
(
branchName
)
{
if
(
branchName
!=
'master'
)
{
scope
.
namespace
.
branch
.
displayControl
.
show
=
true
;
initRules
(
scope
.
namespace
.
branch
);
}
else
{
scope
.
namespace
.
displayControl
.
show
=
true
;
}
scope
.
namespace
.
displayControl
.
currentOperateBranch
=
branchName
;
...
...
apollo-portal/src/main/resources/static/views/component/namespace-panel-branch-tab.html
View file @
5550bd10
This diff is collapsed.
Click to expand it.
apollo-portal/src/main/resources/static/views/component/namespace-panel-master-tab.html
View file @
5550bd10
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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