mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
added reactive accepted file types
This commit is contained in:
parent
4a0b211f27
commit
d770009e0d
@ -31,7 +31,7 @@
|
|||||||
<v-card-title class="mt-0"> {{ $t('general.upload-file') }} </v-card-title>
|
<v-card-title class="mt-0"> {{ $t('general.upload-file') }} </v-card-title>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<AppButtonUpload
|
<AppButtonUpload
|
||||||
accept=".zip,.csv"
|
:accept="content.acceptedFileType || '.zip'"
|
||||||
class="mb-2"
|
class="mb-2"
|
||||||
:post="false"
|
:post="false"
|
||||||
file-name="file"
|
file-name="file"
|
||||||
@ -139,6 +139,7 @@ export default defineComponent({
|
|||||||
const _content = {
|
const _content = {
|
||||||
[MIGRATIONS.mealie]: {
|
[MIGRATIONS.mealie]: {
|
||||||
text: i18n.tc("migration.mealie-pre-v1.description-long"),
|
text: i18n.tc("migration.mealie-pre-v1.description-long"),
|
||||||
|
acceptedFileType: ".zip",
|
||||||
tree: [
|
tree: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@ -194,6 +195,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
[MIGRATIONS.chowdown]: {
|
[MIGRATIONS.chowdown]: {
|
||||||
text: i18n.tc("migration.chowdown.description-long"),
|
text: i18n.tc("migration.chowdown.description-long"),
|
||||||
|
acceptedFileType: ".zip",
|
||||||
tree: [
|
tree: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@ -226,6 +228,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
[MIGRATIONS.copymethat]: {
|
[MIGRATIONS.copymethat]: {
|
||||||
text: i18n.tc("migration.copymethat.description-long"),
|
text: i18n.tc("migration.copymethat.description-long"),
|
||||||
|
acceptedFileType: ".zip",
|
||||||
tree: [
|
tree: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@ -249,10 +252,12 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
[MIGRATIONS.myrecipebox]: {
|
[MIGRATIONS.myrecipebox]: {
|
||||||
text: i18n.tc("migration.myrecipebox.description-long"),
|
text: i18n.tc("migration.myrecipebox.description-long"),
|
||||||
|
acceptedFileType: ".csv",
|
||||||
tree: false,
|
tree: false,
|
||||||
},
|
},
|
||||||
[MIGRATIONS.nextcloud]: {
|
[MIGRATIONS.nextcloud]: {
|
||||||
text: i18n.tc("migration.nextcloud.description-long"),
|
text: i18n.tc("migration.nextcloud.description-long"),
|
||||||
|
acceptedFileType: ".zip",
|
||||||
tree: [
|
tree: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@ -285,10 +290,12 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
[MIGRATIONS.paprika]: {
|
[MIGRATIONS.paprika]: {
|
||||||
text: i18n.tc("migration.paprika.description-long"),
|
text: i18n.tc("migration.paprika.description-long"),
|
||||||
|
acceptedFileType: ".zip",
|
||||||
tree: false,
|
tree: false,
|
||||||
},
|
},
|
||||||
[MIGRATIONS.plantoeat]: {
|
[MIGRATIONS.plantoeat]: {
|
||||||
text: i18n.tc("migration.plantoeat.description-long"),
|
text: i18n.tc("migration.plantoeat.description-long"),
|
||||||
|
acceptedFileType: ".zip",
|
||||||
tree: [
|
tree: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@ -302,6 +309,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
[MIGRATIONS.tandoor]: {
|
[MIGRATIONS.tandoor]: {
|
||||||
text: i18n.tc("migration.tandoor.description-long"),
|
text: i18n.tc("migration.tandoor.description-long"),
|
||||||
|
acceptedFileType: ".zip",
|
||||||
tree: [
|
tree: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@ -387,6 +395,7 @@ export default defineComponent({
|
|||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
text: "",
|
text: "",
|
||||||
|
acceptedFileType: ".zip",
|
||||||
tree: false,
|
tree: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user