Commit d34e9ee7 authored by 任建锋's avatar 任建锋

--

parent bc3ffc80
......@@ -119,6 +119,7 @@
"Project name cannot be empty": "Project name cannot be empty",
"This action will permanently delete project": "This action will permanently delete project[{projectName}], continue?",
"Do you copy the behavior of this node": "Do you copy the behavior of this node?",
"Confirm to delete the view": "Confirm to delete the view?",
"Fetching projects": "Fetching projects…",
"Failed to fetch env": "Failed to fetch env",
"Failed to fetch projects": "Failed to fetch projects",
......
......@@ -143,6 +143,7 @@
"Project name cannot be empty": "项目名不能为空",
"This action will permanently delete project": "您将删除项目[{projectName}], 是否继续?",
"Do you copy the behavior of this node": "是否复制行为?",
"Confirm to delete the view": "确认删除该视图?",
"Fetching projects": "获取项目列表…",
"Failed to fetch env": "获取环境失败",
"Failed to fetch projects": "获取项目列表失败",
......
......@@ -263,10 +263,21 @@
onMoreMenu(command, data, node) {
switch (command) {
case 'delete':
this.$confirm(this.$t('Confirm to delete the view'), this.$t('Alert'), {
confirmButtonText: this.$t('Confirm'),
cancelButtonText: this.$t('Cancel'),
type: 'warning'
}).then(
() => {
this.deleteNode({
node: data,
parentNode: node.parent.data
});
},
() => {
}
)
break;
case 'copy':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment