mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-13 03:15:48 +02:00
chore: clean up code
This commit is contained in:
parent
3cdc675e4f
commit
0f259e4331
9 changed files with 92 additions and 121 deletions
|
@ -193,7 +193,12 @@ function add_server() {
|
|||
}
|
||||
|
||||
function remove_server(index: number) {
|
||||
props.ngx_config?.servers?.splice(index, 1)
|
||||
Modal.confirm({
|
||||
title: $gettext('Do you want to remove this server?'),
|
||||
mask: false,
|
||||
centered: true,
|
||||
onOk: () => props.ngx_config?.servers?.splice(index, 1)
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue