diff --git a/dashboard/src/utils.js b/dashboard/src/utils.js index 6f787b1f7..df124b157 100644 --- a/dashboard/src/utils.js +++ b/dashboard/src/utils.js @@ -573,6 +573,11 @@ function redirectIfNeeded(status, currentView) { return true; } + if (currentView !== 'setup' && currentView !== 'restore') { + window.location.href = '/setup.html' + window.location.search; + return true; + } + // if we are here, proceed with current view return false; } diff --git a/dashboard/src/views/RestoreView.vue b/dashboard/src/views/RestoreView.vue index 0cce349b8..01497b633 100644 --- a/dashboard/src/views/RestoreView.vue +++ b/dashboard/src/views/RestoreView.vue @@ -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 () => {

Cloudron Restore

Provide the backup to restore from

- - +
+ + +
{{ formError.generic }}
@@ -392,8 +394,10 @@ onMounted(async () => { - - Looking to setup? +
+ + Looking to setup? +
diff --git a/dashboard/src/views/SetupView.vue b/dashboard/src/views/SetupView.vue index 1590dc94d..d82ce7148 100644 --- a/dashboard/src/views/SetupView.vue +++ b/dashboard/src/views/SetupView.vue @@ -1,7 +1,7 @@