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: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 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, centered: true,
okText: $gettext('OK'), okText: $gettext('OK'),
cancelText: $gettext('Cancel'), cancelText: $gettext('Cancel'),
onOk: () => props.ngx_config?.servers?.splice(index, 1) onOk() {
props.ngx_config?.servers?.splice(index, 1)
}
}) })
} }
</script> </script>

View file

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