Skip to content

Commit d55fcef

Browse files
committed
fix: update layout and class bindings in BaseEditor, EnableTLS, and SiteList components
1 parent 6770993 commit d55fcef

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

app/src/components/BaseEditor/BaseEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const loading = computed(() =>
2626

2727
<template>
2828
<ASpin class="h-full base-editor-spin" :spinning="loading" :indicator="indicator">
29-
<ARow :gutter="{ xs: 0, sm: 16 }">
29+
<ARow :gutter="[16, 16]">
3030
<ACol
3131
:xs="24"
3232
:sm="24"
@@ -39,7 +39,7 @@ const loading = computed(() =>
3939
</ACol>
4040

4141
<ACol
42-
:class="props.colRightClass"
42+
:class="colRightClass"
4343
:xs="24"
4444
:sm="24"
4545
:md="24"

app/src/views/site/site_edit/components/EnableTLS/EnableTLS.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ const supportSSL = computed(() => {
107107
</script>
108108

109109
<template>
110-
<div v-if="hasServers">
110+
<div v-if="hasServers" class="px-6">
111111
<ContextHolder />
112112

113113
<AFormItem
114114
v-if="!supportSSL"
115115
:label="$gettext('Enable TLS')"
116116
>
117-
<ASwitch @change="confirmChangeTLS" />
117+
<ASwitch class="<sm:ml-2" @change="confirmChangeTLS" />
118118
</AFormItem>
119119
</div>
120120
</template>

app/src/views/site/site_list/SiteList.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function handle_click_duplicate(name: string) {
7070
:table-props="{
7171
rowKey: 'name',
7272
}"
73+
disable-add
7374
disable-delete
7475
disable-view
7576
disable-export
@@ -82,6 +83,17 @@ function handle_click_duplicate(name: string) {
8283
path: `/sites/${encodeURIComponent(record.name)}`,
8384
})"
8485
>
86+
<template #beforeListActions>
87+
<AButton
88+
type="link"
89+
size="small"
90+
@click="router.push({
91+
path: '/sites/add',
92+
})"
93+
>
94+
{{ $gettext('Add') }}
95+
</AButton>
96+
</template>
8597
<template #beforeCardBody>
8698
<InspectConfig ref="inspectConfig" />
8799
<EnvGroupTabs v-model:active-key="envGroupId" :env-groups="envGroups" />

0 commit comments

Comments
 (0)