mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-08 04:56:32 -05:00
Bug/misc bug fixes (#400)
* potentiall fix #329 * typo * auto purge events * image error * update import dialog * fix scheduler interval time * adjust icon position * check for property Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -112,13 +112,7 @@ export default {
|
||||
},
|
||||
|
||||
async importBackup(data) {
|
||||
this.loading = true;
|
||||
const response = await api.backups.import(data.name, data);
|
||||
if (response) {
|
||||
const importData = response.data;
|
||||
this.$refs.report.open(importData);
|
||||
}
|
||||
this.loading = false;
|
||||
this.$refs.report.open(data);
|
||||
},
|
||||
|
||||
async createBackup() {
|
||||
|
||||
@@ -123,19 +123,12 @@ export default {
|
||||
},
|
||||
showPassword: false,
|
||||
loading: false,
|
||||
user: {
|
||||
fullName: "",
|
||||
email: "",
|
||||
group: "",
|
||||
admin: false,
|
||||
id: 0,
|
||||
},
|
||||
user: {},
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
userProfileImage() {
|
||||
this.resetImage();
|
||||
return `api/users/${this.user.id}/image`;
|
||||
},
|
||||
},
|
||||
@@ -144,10 +137,13 @@ export default {
|
||||
this.refreshProfile();
|
||||
},
|
||||
|
||||
methods: {
|
||||
resetImage() {
|
||||
watch: {
|
||||
user() {
|
||||
this.hideImage = false;
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
async refreshProfile() {
|
||||
this.user = await api.users.self();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user