[users] delete avatar

This commit is contained in:
Tim Gröger 2021-11-20 22:59:51 +01:00
parent efde9a2ee7
commit 6061b37887
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ export const useUserStore = defineStore({
});
},
async deleteAvatar(user: FG.User) {
await api.delete(`/users/${user.userid}/avatar`)
},
async getPermissions(force = false) {
if (force || this.permissions.length === 0) {
const { data } = await api.get<FG.Permission[]>('/roles/permissions');