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 () => {
Provide the backup to restore from
- - +