fix: delete server confirm model not destroy #206

close #206
This commit is contained in:
0xJacky 2023-11-27 09:57:04 +08:00
parent 98e08786b0
commit 6993cc67e3
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
5 changed files with 10 additions and 7 deletions

View file

@ -25,7 +25,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

View file

@ -1 +1 @@
{"version":"2.0.0-beta.4","build_id":47,"total_build":251}
{"version":"2.0.0-beta.4","build_id":49,"total_build":253}

View file

@ -209,7 +209,9 @@ function remove_server(index: number) {
centered: true,
okText: $gettext('OK'),
cancelText: $gettext('Cancel'),
onOk: () => props.ngx_config?.servers?.splice(index, 1)
onOk() {
props.ngx_config?.servers?.splice(index, 1)
}
})
}
</script>

View file

@ -105,7 +105,7 @@ if (route.query?.code != undefined && route.query?.state != undefined) {
</script>
<template>
<div class="container">
<div class="login-container">
<div class="login-form">
<div class="project-title">
<h1>Nginx UI</h1>
@ -150,11 +150,11 @@ if (route.query?.code != undefined && route.query?.state != undefined) {
</template>
<style lang="less">
.container {
.login-container {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
height: 100vh;
.login-form {
max-width: 400px;
@ -181,6 +181,7 @@ if (route.query?.code != undefined && route.query?.state != undefined) {
.footer {
padding: 30px;
text-align: center;
font-size: 14px;
}
}
}

View file

@ -1 +1 @@
{"version":"2.0.0-beta.4","build_id":47,"total_build":251}
{"version":"2.0.0-beta.4","build_id":49,"total_build":253}