Skip to content

Commit 6ae150b

Browse files
feat: Move current status to first position in MySQL settings and set… (1Panel-dev#8882)
* feat: Move current status to first position in MySQL and Redis settings and set as default tab
1 parent 3687b9b commit 6ae150b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

frontend/src/views/database/mysql/setting/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
<template #title>
55
<back-button name="MySQL" :header="props.database + ' ' + $t('commons.button.set')">
66
<template #buttons>
7-
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
8-
{{ $t('database.confChange') }}
9-
</el-button>
107
<el-button
118
type="primary"
129
:disabled="mysqlStatus !== 'Running'"
@@ -15,6 +12,9 @@
1512
>
1613
{{ $t('database.currentStatus') }}
1714
</el-button>
15+
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
16+
{{ $t('database.confChange') }}
17+
</el-button>
1818
<el-button
1919
type="primary"
2020
:disabled="mysqlStatus !== 'Running'"
@@ -159,7 +159,7 @@ const globalStore = GlobalStore();
159159
const loading = ref(false);
160160
161161
const extensions = [javascript(), oneDark];
162-
const activeName = ref('conf');
162+
const activeName = ref('status');
163163
164164
const baseInfo = reactive({
165165
name: '',

frontend/src/views/database/redis/setting/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
<div v-show="settingShow" v-loading="loading">
33
<LayoutContent :title="database + ' ' + $t('commons.button.set')" :reload="true">
44
<template #buttons>
5-
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
6-
{{ $t('database.confChange') }}
7-
</el-button>
85
<el-button
96
type="primary"
107
:disabled="redisStatus !== 'Running'"
@@ -13,6 +10,9 @@
1310
>
1411
{{ $t('database.currentStatus') }}
1512
</el-button>
13+
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
14+
{{ $t('database.confChange') }}
15+
</el-button>
1616
<el-button
1717
type="primary"
1818
:disabled="redisStatus !== 'Running'"
@@ -170,7 +170,7 @@ const rules = reactive({
170170
maxmemory: [Rules.number, checkNumberRange(0, 999999)],
171171
});
172172
173-
const activeName = ref('conf');
173+
const activeName = ref('status');
174174
const statusRef = ref();
175175
const persistenceRef = ref();
176176
@@ -217,7 +217,7 @@ const acceptParams = (prop: DialogProps): void => {
217217
redisStatus.value = prop.status;
218218
database.value = prop.database;
219219
settingShow.value = true;
220-
loadConfFile();
220+
changeTab('status');
221221
};
222222
223223
const portRef = ref();

0 commit comments

Comments
 (0)