Skip to content

Commit 470d788

Browse files
authored
feat: Move current status to first position in MySQL and Redis settings and set as default tab (#8910)
1 parent 067a5f8 commit 470d788

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
@@ -6,9 +6,6 @@
66
{{ props.database }}
77
</el-text>
88
<el-divider direction="vertical" />
9-
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
10-
{{ $t('database.confChange') }}
11-
</el-button>
129
<el-button
1310
type="primary"
1411
:disabled="mysqlStatus !== 'Running'"
@@ -17,6 +14,9 @@
1714
>
1815
{{ $t('database.currentStatus') }}
1916
</el-button>
17+
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
18+
{{ $t('database.confChange') }}
19+
</el-button>
2020
<el-button
2121
type="primary"
2222
:disabled="mysqlStatus !== 'Running'"
@@ -136,7 +136,7 @@ import CodemirrorPro from '@/components/codemirror-pro/index.vue';
136136
137137
const loading = ref(false);
138138
139-
const activeName = ref('conf');
139+
const activeName = ref('status');
140140
141141
const baseInfo = reactive({
142142
name: '',

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
{{ database }}
77
</el-text>
88
<el-divider direction="vertical" />
9-
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
10-
{{ $t('database.confChange') }}
11-
</el-button>
129
<el-button
1310
type="primary"
1411
:disabled="redisStatus !== 'Running'"
@@ -17,6 +14,9 @@
1714
>
1815
{{ $t('database.currentStatus') }}
1916
</el-button>
17+
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
18+
{{ $t('database.confChange') }}
19+
</el-button>
2020
<el-button
2121
type="primary"
2222
:disabled="redisStatus !== 'Running'"
@@ -145,7 +145,7 @@ const rules = reactive({
145145
maxmemory: [Rules.number, checkNumberRange(0, 999999)],
146146
});
147147
148-
const activeName = ref('conf');
148+
const activeName = ref('status');
149149
const statusRef = ref();
150150
const persistenceRef = ref();
151151
@@ -192,7 +192,7 @@ const acceptParams = (prop: DialogProps): void => {
192192
redisStatus.value = prop.status;
193193
database.value = prop.database;
194194
settingShow.value = true;
195-
loadConfFile();
195+
changeTab('status');
196196
};
197197
198198
const portRef = ref();

0 commit comments

Comments
 (0)