Make the upload config button inline like in restore view

This commit is contained in:
Girish Ramakrishnan
2025-09-17 13:34:17 +02:00
parent 3855beccce
commit c23234d1d8
2 changed files with 10 additions and 5 deletions
+7 -3
View File
@@ -6,7 +6,6 @@ import { s3like } from '../utils.js';
import BackupProviderForm from './BackupProviderForm.vue';
import AppsModel from '../models/AppsModel.js';
import { REGIONS_CONTABO, REGIONS_VULTR, REGIONS_IONOS, REGIONS_OVH, REGIONS_LINODE, REGIONS_SCALEWAY, REGIONS_WASABI } from '../constants.js';
import { SECRET_PLACEHOLDER } from '../constants.js';
const appsModel = AppsModel.create();
@@ -221,13 +220,18 @@ defineExpose({
:confirm-busy="busy"
:reject-label="busy ? '' : $t('main.dialog.cancel')"
reject-style="secondary"
:alternate-label="$t('app.importBackupDialog.uploadAction')"
@alternate="onUploadBackupConfig()"
@confirm="onSubmit()"
>
<div>
<div>{{ $t('app.importBackupDialog.description') }}</div>
<p>{{ $t('app.importBackupDialog.provideBackupInfo') }}
<input type="file" ref="backupConfigFileInput" @change="onBackupConfigChanged" accept="application/json, text/json" style="display:none"/>
<button type="button" style="background: none; border: none; color: #007bff; cursor: pointer; text-decoration: underline; padding: 0;" @click="onUploadBackupConfig()">
{{ $t('app.importBackupDialog.uploadAction') }}
</button>
</p>
<form @submit.prevent="onSubmit()" autocomplete="off" ref="form">
<fieldset :disabled="busy">
<input style="display: none;" type="submit"/>