mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Add database overwrite checkbox on Install wizard
Allows overwriting the existing database when installing InvoiceShelf
This commit is contained in:
@@ -84,6 +84,11 @@
|
||||
:invalid="v$.database_hostname.$error"
|
||||
/>
|
||||
</BaseInputGroup>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="w-full">
|
||||
<BaseCheckbox v-model="databaseData.database_overwrite" :label="$t('wizard.database.overwrite')"/>
|
||||
</div>
|
||||
|
||||
<BaseButton
|
||||
@@ -106,6 +111,8 @@ import { useInstallationStore } from '@/scripts/admin/stores/installation'
|
||||
import { helpers, required, numeric } from '@vuelidate/validators'
|
||||
import useVuelidate from '@vuelidate/core'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import BaseInputGroup from '@/scripts/components/base/BaseInputGroup.vue'
|
||||
import BaseCheckbox from '@/scripts/components/base/BaseCheckbox.vue'
|
||||
|
||||
const props = defineProps({
|
||||
configData: {
|
||||
|
||||
@@ -105,6 +105,10 @@
|
||||
</BaseInputGroup>
|
||||
</div>
|
||||
|
||||
<div class="w-full">
|
||||
<BaseCheckbox v-model="databaseData.database_overwrite" :label="$t('wizard.database.overwrite')"/>
|
||||
</div>
|
||||
|
||||
<BaseButton
|
||||
v-show="!isFetchingInitialData"
|
||||
:content-loading="isFetchingInitialData"
|
||||
@@ -127,6 +131,7 @@ import { useInstallationStore } from '@/scripts/admin/stores/installation'
|
||||
import { helpers, required, numeric } from '@vuelidate/validators'
|
||||
import useVuelidate from '@vuelidate/core'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import BaseCheckbox from '@/scripts/components/base/BaseCheckbox.vue'
|
||||
|
||||
const props = defineProps({
|
||||
configData: {
|
||||
|
||||
Reference in New Issue
Block a user