1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-21 22:29:39 +02:00
mealie/frontend/src/components/Settings/Migration/index.vue

47 lines
1,016 B
Vue
Raw Normal View History

2021-01-01 16:51:55 -09:00
<template>
<v-card :loading="loading">
2021-01-08 19:57:28 -09:00
<v-card-title class="headline"> Recipe Migration </v-card-title>
<v-divider></v-divider>
2021-01-09 18:04:53 -09:00
<v-tabs v-model="tab">
<v-tab>Chowdown</v-tab>
<v-tab>Nextcloud Recipes</v-tab>
<v-tab-item>
<ChowdownCard @loading="loading = true" @finished="finished" />
</v-tab-item>
<v-tab-item>
<NextcloudCard @loading="loading = true" @finished="finished" />
</v-tab-item>
</v-tabs>
2021-01-01 16:51:55 -09:00
</v-card>
</template>
2021-01-09 18:04:53 -09:00
2021-01-01 16:51:55 -09:00
<script>
2021-01-09 18:04:53 -09:00
import ChowdownCard from "./ChowdownCard";
import NextcloudCard from "./NextcloudCard";
// import SuccessFailureAlert from "../../UI/SuccessFailureAlert";
2021-01-01 16:51:55 -09:00
// import TimePicker from "./Webhooks/TimePicker";
export default {
2021-01-09 18:04:53 -09:00
components: {
ChowdownCard,
NextcloudCard,
},
2021-01-01 16:51:55 -09:00
data() {
return {
2021-01-09 18:04:53 -09:00
tab: null,
2021-01-01 16:51:55 -09:00
loading: false,
};
},
methods: {
2021-01-09 18:04:53 -09:00
finished() {
2021-01-01 16:51:55 -09:00
this.loading = false;
2021-01-09 18:04:53 -09:00
this.$store.dispatch("requestRecentRecipes");
2021-01-01 16:51:55 -09:00
},
},
};
</script>
<style>
</style>