mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-11 07:55:59 +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>
|
<template #title>
|
||||||
<back-button name="MySQL" :header="props.database + ' ' + $t('commons.button.set')">
|
<back-button name="MySQL" :header="props.database + ' ' + $t('commons.button.set')">
|
||||||
<template #buttons>
|
<template #buttons>
|
||||||
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
|
|
||||||
{{ $t('database.confChange') }}
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:disabled="mysqlStatus !== 'Running'"
|
:disabled="mysqlStatus !== 'Running'"
|
||||||
|
@ -15,6 +12,9 @@
|
||||||
>
|
>
|
||||||
{{ $t('database.currentStatus') }}
|
{{ $t('database.currentStatus') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
|
||||||
|
{{ $t('database.confChange') }}
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:disabled="mysqlStatus !== 'Running'"
|
:disabled="mysqlStatus !== 'Running'"
|
||||||
|
@ -159,7 +159,7 @@ const globalStore = GlobalStore();
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
|
||||||
const extensions = [javascript(), oneDark];
|
const extensions = [javascript(), oneDark];
|
||||||
const activeName = ref('conf');
|
const activeName = ref('status');
|
||||||
|
|
||||||
const baseInfo = reactive({
|
const baseInfo = reactive({
|
||||||
name: '',
|
name: '',
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
<div v-show="settingShow" v-loading="loading">
|
<div v-show="settingShow" v-loading="loading">
|
||||||
<LayoutContent :title="database + ' ' + $t('commons.button.set')" :reload="true">
|
<LayoutContent :title="database + ' ' + $t('commons.button.set')" :reload="true">
|
||||||
<template #buttons>
|
<template #buttons>
|
||||||
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
|
|
||||||
{{ $t('database.confChange') }}
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:disabled="redisStatus !== 'Running'"
|
:disabled="redisStatus !== 'Running'"
|
||||||
|
@ -13,6 +10,9 @@
|
||||||
>
|
>
|
||||||
{{ $t('database.currentStatus') }}
|
{{ $t('database.currentStatus') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
|
||||||
|
{{ $t('database.confChange') }}
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:disabled="redisStatus !== 'Running'"
|
:disabled="redisStatus !== 'Running'"
|
||||||
|
@ -170,7 +170,7 @@ const rules = reactive({
|
||||||
maxmemory: [Rules.number, checkNumberRange(0, 999999)],
|
maxmemory: [Rules.number, checkNumberRange(0, 999999)],
|
||||||
});
|
});
|
||||||
|
|
||||||
const activeName = ref('conf');
|
const activeName = ref('status');
|
||||||
const statusRef = ref();
|
const statusRef = ref();
|
||||||
const persistenceRef = ref();
|
const persistenceRef = ref();
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ const acceptParams = (prop: DialogProps): void => {
|
||||||
redisStatus.value = prop.status;
|
redisStatus.value = prop.status;
|
||||||
database.value = prop.database;
|
database.value = prop.database;
|
||||||
settingShow.value = true;
|
settingShow.value = true;
|
||||||
loadConfFile();
|
changeTab('status');
|
||||||
};
|
};
|
||||||
|
|
||||||
const portRef = ref();
|
const portRef = ref();
|
||||||
|
|
Loading…
Add table
Reference in a new issue