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
97b749ab
Commit
97b749ab
authored
Sep 28, 2016
by
zhangle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
permission tips
parent
1a1ea212
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
4 deletions
+43
-4
config.html
apollo-portal/src/main/resources/static/config.html
+24
-2
ConfigBaseInfoController.js
...tic/scripts/controller/config/ConfigBaseInfoController.js
+4
-0
ConfigNamespaceController.js
...ic/scripts/controller/config/ConfigNamespaceController.js
+6
-0
namespace-panel-directive.js
...ces/static/scripts/directive/namespace-panel-directive.js
+2
-1
entrance.html
...l/src/main/resources/static/views/component/entrance.html
+1
-1
namespace-panel.html
...ain/resources/static/views/component/namespace-panel.html
+6
-0
No files found.
apollo-portal/src/main/resources/static/config.html
View file @
97b749ab
...
@@ -75,10 +75,22 @@
...
@@ -75,10 +75,22 @@
<apolloentrance
apollo-title=
"'添加集群'"
apollo-img-src=
"'plus-orange'"
<apolloentrance
apollo-title=
"'添加集群'"
apollo-img-src=
"'plus-orange'"
apollo-href=
"'cluster.html?#/appid=' + pageContext.appId"
apollo-href=
"'cluster.html?#/appid=' + pageContext.appId"
ng-show=
"hasCreateClusterPermission"
></apolloentrance>
ng-show=
"hasCreateClusterPermission"
></apolloentrance>
<span
class=
"list-group-item cursor-pointer hover"
ng-click=
"showMasterPermissionTips()"
ng-show=
"!hasCreateClusterPermission"
>
<div
class=
"row icon-text icon-plus-orange"
>
<p
class=
"btn-title"
>
添加集群
</p>
</div>
</span>
<apolloentrance
apollo-title=
"'添加Namespace'"
apollo-img-src=
"'plus-orange'"
<apolloentrance
apollo-title=
"'添加Namespace'"
apollo-img-src=
"'plus-orange'"
apollo-href=
"'namespace.html?#/appid=' + pageContext.appId"
apollo-href=
"'namespace.html?#/appid=' + pageContext.appId"
ng-show=
"hasCreateNamespacePermission"
></apolloentrance>
ng-show=
"hasCreateNamespacePermission"
></apolloentrance>
<span
class=
"list-group-item cursor-pointer hover"
ng-click=
"showMasterPermissionTips()"
ng-show=
"!hasCreateNamespacePermission"
>
<div
class=
"row icon-text icon-plus-orange"
>
<p
class=
"btn-title"
>
添加Namespace
</p>
</div>
</span>
<apolloentrance
apollo-title=
"'项目权限'"
apollo-img-src=
"'user-manage'"
<apolloentrance
apollo-title=
"'项目权限'"
apollo-img-src=
"'user-manage'"
apollo-href=
"'/app/role.html?#/appid=' + pageContext.appId"
apollo-href=
"'/app/role.html?#/appid=' + pageContext.appId"
...
@@ -125,7 +137,8 @@
...
@@ -125,7 +137,8 @@
pre-release-ns=
"prepareReleaseNamespace"
pre-release-ns=
"prepareReleaseNamespace"
create-item=
"createItem"
edit-item=
"editItem"
create-item=
"createItem"
edit-item=
"editItem"
pre-delete-item=
"preDeleteItem"
commit-change=
"commitChange"
pre-delete-item=
"preDeleteItem"
commit-change=
"commitChange"
pre-rollback=
"preRollback"
show-text=
"showText"
></apollonspanel>
pre-rollback=
"preRollback"
show-text=
"showText"
show-no-modify-permission-dialog=
"showNoModifyPermissionDialog"
></apollonspanel>
</div>
</div>
<!-- delete modal-->
<!-- delete modal-->
...
@@ -133,7 +146,16 @@
...
@@ -133,7 +146,16 @@
apollo-detail=
"'确定要删除配置吗?'"
apollo-confirm=
"deleteItem"
></apolloconfirmdialog>
apollo-detail=
"'确定要删除配置吗?'"
apollo-confirm=
"deleteItem"
></apolloconfirmdialog>
<apolloconfirmdialog
apollo-dialog-id=
"'releaseNoPermissionDialog'"
apollo-title=
"'发布'"
<apolloconfirmdialog
apollo-dialog-id=
"'releaseNoPermissionDialog'"
apollo-title=
"'发布'"
apollo-detail=
"'您没有发布权限哦~ 请找 ' + masterUsers + ' 分配权限'"
apollo-detail=
"'您没有发布权限哦~ 请找项目管理员 ' + masterUsers + ' 分配发布权限'"
apollo-show-cancel-btn=
"false"
></apolloconfirmdialog>
<apolloconfirmdialog
apollo-dialog-id=
"'modifyNoPermissionDialog'"
apollo-title=
"'申请配置权限'"
apollo-detail=
"'请找项目管理员 ' + masterUsers + ' 分配编辑或发布权限'"
apollo-show-cancel-btn=
"false"
></apolloconfirmdialog>
<apolloconfirmdialog
apollo-dialog-id=
"'masterNoPermissionDialog'"
apollo-title=
"'申请配置权限'"
apollo-detail=
"'您不是项目管理员, 只有项目管理员才有添加集群、namespace的权限。
如需管理员权限,请找项目管理员 ' + masterUsers + ' 分配管理员权限'"
apollo-show-cancel-btn=
"false"
></apolloconfirmdialog>
apollo-show-cancel-btn=
"false"
></apolloconfirmdialog>
<apolloconfirmdialog
apollo-dialog-id=
"'namespaceLockedDialog'"
apollo-title=
"'编辑受限'"
<apolloconfirmdialog
apollo-dialog-id=
"'namespaceLockedDialog'"
apollo-title=
"'编辑受限'"
...
...
apollo-portal/src/main/resources/static/scripts/controller/config/ConfigBaseInfoController.js
View file @
97b749ab
...
@@ -207,5 +207,9 @@ application_module.controller("ConfigBaseInfoController",
...
@@ -207,5 +207,9 @@ application_module.controller("ConfigBaseInfoController",
});
});
$scope
.
showMasterPermissionTips
=
function
()
{
$
(
"#masterNoPermissionDialog"
).
modal
(
'show'
);
}
}]);
}]);
apollo-portal/src/main/resources/static/scripts/controller/config/ConfigNamespaceController.js
View file @
97b749ab
...
@@ -47,6 +47,8 @@ application_module.controller("ConfigNamespaceController",
...
@@ -47,6 +47,8 @@ application_module.controller("ConfigNamespaceController",
$scope
.
showText
=
showText
;
$scope
.
showText
=
showText
;
$scope
.
showNoModifyPermissionDialog
=
showNoModifyPermissionDialog
;
$scope
.
releaseBtnDisabled
=
false
;
$scope
.
releaseBtnDisabled
=
false
;
$scope
.
rollbackBtnDisabled
=
false
;
$scope
.
rollbackBtnDisabled
=
false
;
$scope
.
addItemBtnDisabled
=
false
;
$scope
.
addItemBtnDisabled
=
false
;
...
@@ -384,6 +386,10 @@ application_module.controller("ConfigNamespaceController",
...
@@ -384,6 +386,10 @@ application_module.controller("ConfigNamespaceController",
$
(
'#showText'
).
modal
(
'show'
);
$
(
'#showText'
).
modal
(
'show'
);
}
}
function
showNoModifyPermissionDialog
()
{
$
(
"#modifyNoPermissionDialog"
).
modal
(
'show'
);
}
$
(
'.config-item-container'
).
removeClass
(
'hide'
);
$
(
'.config-item-container'
).
removeClass
(
'hide'
);
new
Clipboard
(
'.clipboard'
);
new
Clipboard
(
'.clipboard'
);
...
...
apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js
View file @
97b749ab
...
@@ -17,7 +17,8 @@ directive_module.directive('apollonspanel',
...
@@ -17,7 +17,8 @@ directive_module.directive('apollonspanel',
editItem
:
'='
,
editItem
:
'='
,
preDeleteItem
:
'='
,
preDeleteItem
:
'='
,
commitChange
:
'='
,
commitChange
:
'='
,
showText
:
'='
showText
:
'='
,
showNoModifyPermissionDialog
:
'='
},
},
link
:
function
(
scope
,
element
,
attrs
)
{
link
:
function
(
scope
,
element
,
attrs
)
{
...
...
apollo-portal/src/main/resources/static/views/component/entrance.html
View file @
97b749ab
<a
class=
"list-group-item"
href=
"{{href}}"
>
<a
class=
"list-group-item
hover
"
href=
"{{href}}"
>
<div
class=
"row icon-text icon-{{imgSrc}}"
>
<div
class=
"row icon-text icon-{{imgSrc}}"
>
<p
class=
"btn-title"
>
{{title}}
</p>
<p
class=
"btn-title"
>
{{title}}
</p>
</div>
</div>
...
...
apollo-portal/src/main/resources/static/views/component/namespace-panel.html
View file @
97b749ab
...
@@ -57,6 +57,12 @@
...
@@ -57,6 +57,12 @@
<img
src=
"img/sync.png"
>
<img
src=
"img/sync.png"
>
同步配置
同步配置
</a>
</a>
<a
type=
"button"
class=
"btn btn-danger btn-sm J_tableview_btn"
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"您没有任何配置权限,请申请"
ng-click=
"showNoModifyPermissionDialog()"
ng-show=
"!namespace.hasModifyPermission && !namespace.hasReleasePermission"
>
申请配置权限
</a>
</div>
</div>
</div>
</div>
</header>
</header>
...
...
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