Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
superrain51
apollo
提交
96441c0d
apollo
项目概览
superrain51
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
96441c0d
编写于
1月 23, 2019
作者:
张
张乐
提交者:
GitHub
1月 23, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1898 from kezhenxu94/enhancement/delete-config-item
prompt current config item that is being deleted
上级
11f6234d
1e467a7c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
6 deletion
+7
-6
apollo-portal/src/main/resources/static/config.html
apollo-portal/src/main/resources/static/config.html
+1
-1
apollo-portal/src/main/resources/static/scripts/controller/config/ConfigNamespaceController.js
...ic/scripts/controller/config/ConfigNamespaceController.js
+3
-2
apollo-portal/src/main/resources/static/views/component/namespace-panel-branch-tab.html
...es/static/views/component/namespace-panel-branch-tab.html
+1
-1
apollo-portal/src/main/resources/static/views/component/namespace-panel-master-tab.html
...es/static/views/component/namespace-panel-master-tab.html
+2
-2
未找到文件。
apollo-portal/src/main/resources/static/config.html
浏览文件 @
96441c0d
...
...
@@ -257,7 +257,7 @@
<deletenamespacemodal
env=
"pageContext.env"
></deletenamespacemodal>
<apolloconfirmdialog
apollo-dialog-id=
"'deleteConfirmDialog'"
apollo-title=
"'删除配置'"
apollo-detail=
"'确定要删除配置吗?'"
apollo-detail=
"'
您正在删除 Key 为 <b>' + config.key + '</b> Value 为 <b>' + config.value + '</b> 的配置.<br>
确定要删除配置吗?'"
apollo-show-cancel-btn=
"true"
apollo-confirm=
"deleteItem"
></apolloconfirmdialog>
<apolloconfirmdialog
apollo-dialog-id=
"'releaseNoPermissionDialog'"
apollo-title=
"'发布'"
...
...
apollo-portal/src/main/resources/static/scripts/controller/config/ConfigNamespaceController.js
浏览文件 @
96441c0d
...
...
@@ -151,13 +151,14 @@ function controller($rootScope, $scope, toastr, AppUtil, EventManager, ConfigSer
var
toDeleteItemId
=
0
;
function
preDeleteItem
(
namespace
,
item
Id
)
{
function
preDeleteItem
(
namespace
,
item
)
{
if
(
!
lockCheck
(
namespace
))
{
return
;
}
$scope
.
config
=
item
;
$scope
.
toOperationNamespace
=
namespace
;
toDeleteItemId
=
item
I
d
;
toDeleteItemId
=
item
.
i
d
;
$
(
"
#deleteConfirmDialog
"
).
modal
(
"
show
"
);
}
...
...
apollo-portal/src/main/resources/static/views/component/namespace-panel-branch-tab.html
浏览文件 @
96441c0d
...
...
@@ -189,7 +189,7 @@
<img
style=
"margin-left: 5px;"
src=
"img/cancel.png"
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"删除"
ng-if=
"!config.isDeleted"
ng-click=
"preDeleteItem(namespace.branch, config.item
.id
)"
ng-click=
"preDeleteItem(namespace.branch, config.item)"
ng-show=
"namespace.hasModifyPermission"
>
</td>
...
...
apollo-portal/src/main/resources/static/views/component/namespace-panel-master-tab.html
浏览文件 @
96441c0d
...
...
@@ -294,7 +294,7 @@
ng-show=
"namespace.hasModifyPermission"
>
<img
style=
"margin-left: 5px;"
src=
"img/cancel.png"
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"删除"
ng-click=
"preDeleteItem(namespace, config.item
.id
)"
ng-click=
"preDeleteItem(namespace, config.item)"
ng-show=
"namespace.hasModifyPermission"
>
</td>
<td
width=
"6%"
class=
"text-center"
ng-if=
"config.isDeleted"
>
...
...
@@ -403,7 +403,7 @@
ng-show=
"namespace.hasModifyPermission"
>
<img
style=
"margin-left: 5px;"
src=
"img/cancel.png"
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"删除"
ng-click=
"preDeleteItem(namespace, config.item
.id
)"
ng-click=
"preDeleteItem(namespace, config.item)"
ng-show=
"namespace.hasModifyPermission"
>
</td>
<td
width=
"6%"
class=
"text-center"
ng-if=
"config.isDeleted"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录