Add restore route in provision model

This commit is contained in:
Johannes Zellner
2025-05-06 11:54:02 +02:00
parent 63f9e26b2e
commit 7aca2a1b36
2 changed files with 14 additions and 3 deletions
+3 -3
View File
@@ -208,7 +208,7 @@ onMounted(async () => {
You can follow the logs on the server at <code class="clipboard hand" data-clipboard-text="/home/yellowtent/platformdata/logs/box.log" uib-tooltip="{{ clipboardDone ? 'Copied' : 'Click to copy' }}" tooltip-placement="right">/home/yellowtent/platformdata/logs/box.log</code>
<br/>
<br/>
<span v-show="taskMinutesActive >= 4">If setup appears stuck, it can be restarted by running <code>systemctl restart box</code> and reloading this page.</span>
<span v-show="taskMinutesActive >= 4">If restore appears stuck, it can be restarted by running <code>systemctl restart box</code> and reloading this page.</span>
</div>
</div>
@@ -216,11 +216,11 @@ onMounted(async () => {
<h1>Cloudron Restore</h1>
<p>Provide the backup to restore from</p>
<div class="error-label" v-if="formError.generic">{{ formError.generic }}</div>
<input type="file" ref="backupConfigFileInput" @change="onBackupConfigChanged" accept="application/json, text/json" style="display:none"/>
<Button @click="onUploadBackupConfig()">Upload Backup Config</button>
<div class="error-label" v-if="formError.generic">{{ formError.generic }}</div>
<form ref="form" @submit.prevent="onSubmit()" @input="checkValidity()">
<fieldset :disabled="busy">
<input type="submit" style="display: none;"/>