mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
upload button vile creation
This commit is contained in:
parent
46cd62059a
commit
a2ae52e781
3 changed files with 36 additions and 2 deletions
|
@ -17,7 +17,16 @@
|
|||
</v-col>
|
||||
</v-row>
|
||||
<v-divider class="my-3"></v-divider>
|
||||
|
||||
<v-card-title class="mt-n6">
|
||||
Available Backups
|
||||
<v-spacer></v-spacer>
|
||||
<span>
|
||||
<v-btn color="success" text class="ma-2 white--text">
|
||||
Upload
|
||||
<v-icon right dark> mdi-cloud-upload </v-icon>
|
||||
</v-btn>
|
||||
</span>
|
||||
</v-card-title>
|
||||
<AvailableBackupCard
|
||||
@loading="backupLoading = true"
|
||||
@finished="processFinished"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
>
|
||||
</v-file-input>
|
||||
</v-form>
|
||||
</template>
|
||||
</template>c
|
||||
|
||||
<script>
|
||||
import api from "../../../api";
|
||||
|
|
25
frontend/src/components/UI/UploadBtn.vue
Normal file
25
frontend/src/components/UI/UploadBtn.vue
Normal file
|
@ -0,0 +1,25 @@
|
|||
<template>
|
||||
<v-form ref="file">
|
||||
<v-file-input
|
||||
:loading="loading"
|
||||
:label="$t('migration.upload-an-archive')"
|
||||
v-model="file"
|
||||
accept=".zip"
|
||||
@change="upload"
|
||||
:prepend-icon="icon"
|
||||
class="file-icon"
|
||||
>
|
||||
</v-file-input>
|
||||
<v-btn color="success" text class="ma-2 white--text">
|
||||
Upload
|
||||
<v-icon right dark> mdi-cloud-upload </v-icon>
|
||||
</v-btn>
|
||||
</v-form>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue