fix: 解决备份账号创建后,未重制 bucket 选项的问题 (#518)

pull/519/head
ssongliu 2 years ago committed by GitHub
parent ce2b92ee01
commit 281cf48aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -804,7 +804,7 @@ const message = {
backup: 'Backup',
thirdParty: 'Third-party account',
createBackupAccount: 'Create {0} backup account',
createBackupAccount: 'Add {0}',
noTypeForCreate: 'No backup type is currently created',
LOCAL: 'Server disks',
currentPath: 'Current path',
@ -812,10 +812,10 @@ const message = {
S3: 'Amazon S3',
MINIO: 'MINIO',
SFTP: 'SFTP',
COS: 'Tencent COS Browser',
KODO: 'Qiniu KODO',
COS: 'Tencent COS',
KODO: 'Qiniu Kodo',
backupAlert:
"Compatibility of some object storage service providers with Amazon S3, For details please see <a target=“_blank” href='https://1panel.cn/docs/user_manual/settings/#3'>官方文档</a> ",
"In theory, as long as the cloud provider is compatible with the S3 protocol, existing Amazon S3 cloud storage can be used for backup. For specific configurations, please refer to the <a target=“_blank” href='https://1panel.cn/docs/user_manual/settings/#3'>official documentation.</a> ",
domain: 'Accelerate domain',
backupAccount: 'Backup account',
loadBucket: 'Get bucket',

@ -805,7 +805,7 @@ const message = {
backup: '',
thirdParty: '',
createBackupAccount: ' {0} ',
createBackupAccount: ' {0}',
noTypeForCreate: '',
LOCAL: '',
currentPath: '',
@ -813,10 +813,10 @@ const message = {
S3: ' S3 ',
MINIO: 'MINIO',
SFTP: 'SFTP',
COS: ' COS Browser',
KODO: ' KODO',
COS: ' COS',
KODO: ' Kodo',
backupAlert:
"部分对象存储服务商与亚马逊 S3 的兼容性,详情请查看 <a target=“_blank” href='https://1panel.cn/docs/user_manual/settings/#3'>官方文档</a> ",
"理论上只要云厂商兼容 S3 协议,就可以用现有的亚马逊 S3 云存储来备份,具体配置参考 <a target=“_blank” href='https://1panel.cn/docs/user_manual/settings/#3'>官方文档</a> ",
domain: '',
backupAccount: '',
loadBucket: '',

@ -72,7 +72,7 @@
</div>
<el-alert v-else center class="alert" style="height: 167px" :closable="false">
<el-button size="large" round plain type="primary" @click="onOpenDialog('create', 'S3')">
{{ $t('setting.createBackupAccount', ['S3']) }}
{{ $t('setting.createBackupAccount', [$t('setting.S3')]) }}
</el-button>
</el-alert>
</el-col>
@ -108,7 +108,7 @@
</div>
<el-alert v-else center class="alert" style="height: 167px" :closable="false">
<el-button size="large" round plain type="primary" @click="onOpenDialog('create', 'OSS')">
{{ $t('setting.createBackupAccount', ['OSS']) }}
{{ $t('setting.createBackupAccount', [$t('setting.OSS')]) }}
</el-button>
</el-alert>
</el-col>
@ -145,7 +145,7 @@
</div>
<el-alert v-else center class="alert" style="height: 167px" :closable="false">
<el-button size="large" round plain type="primary" @click="onOpenDialog('create', 'COS')">
{{ $t('setting.createBackupAccount', ['COS']) }}
{{ $t('setting.createBackupAccount', [$t('setting.COS')]) }}
</el-button>
</el-alert>
</el-col>
@ -181,7 +181,7 @@
</div>
<el-alert v-else center class="alert" style="height: 167px" :closable="false">
<el-button size="large" round plain type="primary" @click="onOpenDialog('create', 'KODO')">
{{ $t('setting.createBackupAccount', ['KODO']) }}
{{ $t('setting.createBackupAccount', [$t('setting.KODO')]) }}
</el-button>
</el-alert>
</el-col>
@ -218,7 +218,7 @@
</div>
<el-alert v-else center class="alert" style="height: 167px" :closable="false">
<el-button size="large" round plain type="primary" @click="onOpenDialog('create', 'MINIO')">
{{ $t('setting.createBackupAccount', ['MINIO']) }}
{{ $t('setting.createBackupAccount', [$t('setting.MINIO')]) }}
</el-button>
</el-alert>
</el-col>
@ -257,7 +257,7 @@
</div>
<el-alert v-else center class="alert" style="height: 167px" :closable="false">
<el-button size="large" round plain type="primary" @click="onOpenDialog('create', 'SFTP')">
{{ $t('setting.createBackupAccount', ['SFTP']) }}
{{ $t('setting.createBackupAccount', [$t('setting.SFTP')]) }}
</el-button>
</el-alert>
</el-col>

@ -184,6 +184,7 @@ const dialogData = ref<DialogProps>({
title: '',
});
const acceptParams = (params: DialogProps): void => {
buckets.value = [];
dialogData.value = params;
if (dialogData.value.title === 'edit' && dialogData.value.rowData!.type === 'MINIO') {
if (dialogData.value.rowData!.varsJson['endpoint'].indexOf('://') !== 0) {

Loading…
Cancel
Save