mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-12 00:16:37 +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 }}
|
{{ props.database }}
|
||||||
</el-text>
|
</el-text>
|
||||||
<el-divider direction="vertical" />
|
<el-divider direction="vertical" />
|
||||||
<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'"
|
||||||
|
@ -17,6 +14,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'"
|
||||||
|
@ -136,7 +136,7 @@ import CodemirrorPro from '@/components/codemirror-pro/index.vue';
|
||||||
|
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
|
||||||
const activeName = ref('conf');
|
const activeName = ref('status');
|
||||||
|
|
||||||
const baseInfo = reactive({
|
const baseInfo = reactive({
|
||||||
name: '',
|
name: '',
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
{{ database }}
|
{{ database }}
|
||||||
</el-text>
|
</el-text>
|
||||||
<el-divider direction="vertical" />
|
<el-divider direction="vertical" />
|
||||||
<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'"
|
||||||
|
@ -17,6 +14,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'"
|
||||||
|
@ -145,7 +145,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();
|
||||||
|
|
||||||
|
@ -192,7 +192,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