Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frontend/src/views/database/mysql/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand All @@ -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'"
Expand Down Expand Up @@ -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: '',
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/views/database/redis/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand All @@ -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'"
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down