mirror of
https://github.com/tnb-labs/panel.git
synced 2026-08-29 02:10:58 +08:00
fix: 优化按钮顺序
This commit is contained in:
@@ -1964,18 +1964,6 @@ const removeCustomConfig = (index: number) => {
|
||||
</n-spin>
|
||||
<template #footer>
|
||||
<n-flex justify="end">
|
||||
<n-button @click="show = false">
|
||||
{{ $gettext('Cancel') }}
|
||||
</n-button>
|
||||
<n-button
|
||||
v-if="current !== 'log' && current !== 'error_log'"
|
||||
type="primary"
|
||||
:loading="saveLoading"
|
||||
:disabled="saveLoading"
|
||||
@click="handleSave"
|
||||
>
|
||||
{{ $gettext('Save') }}
|
||||
</n-button>
|
||||
<n-popconfirm v-if="current == 'log'" @positive-click="clearLog">
|
||||
<template #trigger>
|
||||
<n-button type="primary" :loading="clearLogLoading" :disabled="clearLogLoading">
|
||||
@@ -2001,6 +1989,18 @@ const removeCustomConfig = (index: number) => {
|
||||
</template>
|
||||
{{ $gettext('Are you sure you want to reset the configuration?') }}
|
||||
</n-popconfirm>
|
||||
<n-button @click="show = false">
|
||||
{{ $gettext('Cancel') }}
|
||||
</n-button>
|
||||
<n-button
|
||||
v-if="current !== 'log' && current !== 'error_log'"
|
||||
type="primary"
|
||||
:loading="saveLoading"
|
||||
:disabled="saveLoading"
|
||||
@click="handleSave"
|
||||
>
|
||||
{{ $gettext('Save') }}
|
||||
</n-button>
|
||||
</n-flex>
|
||||
</template>
|
||||
</n-modal>
|
||||
|
||||
Reference in New Issue
Block a user