Still working on backup & restore

This commit is contained in:
Donald Zou
2024-10-15 00:30:20 +08:00
parent bb700f3a3d
commit 27de7ddbf8
7 changed files with 128 additions and 37 deletions

View File

@@ -5,6 +5,8 @@ import {WireguardConfigurationsStore} from "@/stores/WireguardConfigurationsStor
import {fetchPost} from "@/utilities/fetch.js";
import {DashboardConfigurationStore} from "@/stores/DashboardConfigurationStore.js";
import router from "@/router/index.js";
import ConfigurationBackupRestore
from "@/components/configurationComponents/editConfigurationComponents/configurationBackupRestore.vue";
const props = defineProps({
configurationInfo: Object
})
@@ -177,13 +179,17 @@ watch(data, () => {
:disabled="!dataChanged || saving">
<i class="bi bi-arrow-clockwise"></i>
</button>
<button class="btn bg-primary-subtle border-primary-subtle text-primary-emphasis rounded-3 px-3 py-2 shadow"
:disabled="!dataChanged || saving"
@click="saveForm()"
>
<i class="bi bi-save-fill"></i></button>
</div>
<hr>
<h6>
<LocaleText t="Backup & Restore"></LocaleText>
</h6>
<ConfigurationBackupRestore></ConfigurationBackupRestore>
</div>
</div>
</div>