Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
d51f7b0e
Commit
d51f7b0e
authored
4 years ago
by
黎龙鑫
Committed by
jianxing
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(系统设置):环境列表删除环境时增加确认删除弹框
parent
d929cc48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/business/components/settings/project/EnvironmentList.vue
+12
-4
.../business/components/settings/project/EnvironmentList.vue
with
12 additions
and
4 deletions
+12
-4
frontend/src/business/components/settings/project/EnvironmentList.vue
+
12
-
4
View file @
d51f7b0e
...
...
@@ -258,10 +258,18 @@
},
deleteEnv
(
environment
)
{
if
(
environment
.
id
)
{
this
.
result
=
this
.
$get
(
'
/api/environment/delete/
'
+
environment
.
id
,
()
=>
{
this
.
$success
(
this
.
$t
(
'
commons.delete_success
'
));
this
.
list
();
});
this
.
$confirm
(
this
.
$t
(
'
commons.confirm_delete
'
)
+
environment
.
name
,
{
confirmButtonText
:
this
.
$t
(
'
commons.confirm
'
),
cancelButtonText
:
this
.
$t
(
'
commons.cancel
'
),
type
:
"
warning
"
}).
then
(()
=>
{
this
.
result
=
this
.
$get
(
'
/api/environment/delete/
'
+
environment
.
id
,
()
=>
{
this
.
$success
(
this
.
$t
(
'
commons.delete_success
'
));
this
.
list
();
});
}).
catch
(()
=>
{
this
.
$info
(
this
.
$t
(
'
commons.delete_cancelled
'
));
})
}
},
getNoRepeatName
(
name
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help