Fix the redirection pre-setup
This commit is contained in:
@@ -277,9 +277,9 @@ function onUploadBackupConfig() {
|
||||
backupConfigFileInput.value.click();
|
||||
}
|
||||
|
||||
function onCopyToClipboard(text) {
|
||||
copyToClipboard(text);
|
||||
window.pankow.notify({ type: 'success', text: 'Copied to clipboard' });
|
||||
function onCopyToClipboard(value) {
|
||||
copyToClipboard(value);
|
||||
window.pankow.notify('copied to clipboard');
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
@@ -322,8 +322,10 @@ onMounted(async () => {
|
||||
<h1>Cloudron Restore</h1>
|
||||
<p>Provide the backup to restore from</p>
|
||||
|
||||
<input type="file" ref="backupConfigFileInput" @change="onBackupConfigChanged" accept="application/json, text/json" style="display:none"/>
|
||||
<Button @click="onUploadBackupConfig()">Upload Backup Config</button>
|
||||
<div>
|
||||
<input type="file" ref="backupConfigFileInput" @change="onBackupConfigChanged" accept="application/json, text/json" style="display:none"/>
|
||||
<Button @click="onUploadBackupConfig()">Upload Backup Config</Button>
|
||||
</div>
|
||||
|
||||
<div class="error-label" v-if="formError.generic">{{ formError.generic }}</div>
|
||||
|
||||
@@ -392,8 +394,10 @@ onMounted(async () => {
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<Button @click="onSubmit()" style="margin-top: 12px" :disabled="busy || !isFormValid" :loading="busy">Restore</Button>
|
||||
<a href="/setup.html" style="margin-left: 10px;">Looking to setup?</a>
|
||||
<div style="margin-top: 12px">
|
||||
<Button @click="onSubmit()" :disabled="busy || !isFormValid" :loading="busy">Restore</Button>
|
||||
<a href="/setup.html" style="margin-left: 10px;">Looking to setup?</a>
|
||||
</div>
|
||||
</div>
|
||||
</Transition>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user