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:
Hayden
2021-05-08 21:31:19 -08:00
committed by GitHub
parent 145eb9f1ee
commit a1dd6c941b
10 changed files with 99 additions and 71 deletions

View File

@@ -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() {

View File

@@ -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();
},