mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 23:47:39 +08:00
feat: Move current status to first position in MySQL settings and set… (#8882)
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
Some checks failed
SonarCloud Scan / SonarCloud (push) Has been cancelled
* feat: Move current status to first position in MySQL and Redis settings and set as default tab
This commit is contained in:
parent
3687b9bea2
commit
6ae150b64e
2 changed files with 9 additions and 9 deletions
|
@ -4,9 +4,6 @@
|
|||
<template #title>
|
||||
<back-button name="MySQL" :header="props.database + ' ' + $t('commons.button.set')">
|
||||
<template #buttons>
|
||||
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
|
||||
{{ $t('database.confChange') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="mysqlStatus !== 'Running'"
|
||||
|
@ -15,6 +12,9 @@
|
|||
>
|
||||
{{ $t('database.currentStatus') }}
|
||||
</el-button>
|
||||
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
|
||||
{{ $t('database.confChange') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="mysqlStatus !== 'Running'"
|
||||
|
@ -159,7 +159,7 @@ const globalStore = GlobalStore();
|
|||
const loading = ref(false);
|
||||
|
||||
const extensions = [javascript(), oneDark];
|
||||
const activeName = ref('conf');
|
||||
const activeName = ref('status');
|
||||
|
||||
const baseInfo = reactive({
|
||||
name: '',
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
<div v-show="settingShow" v-loading="loading">
|
||||
<LayoutContent :title="database + ' ' + $t('commons.button.set')" :reload="true">
|
||||
<template #buttons>
|
||||
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
|
||||
{{ $t('database.confChange') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="redisStatus !== 'Running'"
|
||||
|
@ -13,6 +10,9 @@
|
|||
>
|
||||
{{ $t('database.currentStatus') }}
|
||||
</el-button>
|
||||
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
|
||||
{{ $t('database.confChange') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="redisStatus !== 'Running'"
|
||||
|
@ -170,7 +170,7 @@ const rules = reactive({
|
|||
maxmemory: [Rules.number, checkNumberRange(0, 999999)],
|
||||
});
|
||||
|
||||
const activeName = ref('conf');
|
||||
const activeName = ref('status');
|
||||
const statusRef = ref();
|
||||
const persistenceRef = ref();
|
||||
|
||||
|
@ -217,7 +217,7 @@ const acceptParams = (prop: DialogProps): void => {
|
|||
redisStatus.value = prop.status;
|
||||
database.value = prop.database;
|
||||
settingShow.value = true;
|
||||
loadConfFile();
|
||||
changeTab('status');
|
||||
};
|
||||
|
||||
const portRef = ref();
|
||||
|
|
Loading…
Add table
Reference in a new issue