mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 15:36:45 +08:00
feat: Move current status to first position in MySQL and Redis settings and set as default tab (#8910)
This commit is contained in:
parent
067a5f8415
commit
470d7881cd
2 changed files with 9 additions and 9 deletions
|
@ -6,9 +6,6 @@
|
|||
{{ props.database }}
|
||||
</el-text>
|
||||
<el-divider direction="vertical" />
|
||||
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
|
||||
{{ $t('database.confChange') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="mysqlStatus !== 'Running'"
|
||||
|
@ -17,6 +14,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'"
|
||||
|
@ -136,7 +136,7 @@ import CodemirrorPro from '@/components/codemirror-pro/index.vue';
|
|||
|
||||
const loading = ref(false);
|
||||
|
||||
const activeName = ref('conf');
|
||||
const activeName = ref('status');
|
||||
|
||||
const baseInfo = reactive({
|
||||
name: '',
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
{{ database }}
|
||||
</el-text>
|
||||
<el-divider direction="vertical" />
|
||||
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
|
||||
{{ $t('database.confChange') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="redisStatus !== 'Running'"
|
||||
|
@ -17,6 +14,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'"
|
||||
|
@ -145,7 +145,7 @@ const rules = reactive({
|
|||
maxmemory: [Rules.number, checkNumberRange(0, 999999)],
|
||||
});
|
||||
|
||||
const activeName = ref('conf');
|
||||
const activeName = ref('status');
|
||||
const statusRef = ref();
|
||||
const persistenceRef = ref();
|
||||
|
||||
|
@ -192,7 +192,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