Fix this reference

This commit is contained in:
Andrew Kingston 2025-01-13 10:38:00 +00:00
parent e2ecfc871d
commit 1ec4b4c6b7
No known key found for this signature in database
2 changed files with 5 additions and 6 deletions

View File

@ -251,6 +251,7 @@
passwordModal.show() passwordModal.show()
await fetch.refresh() await fetch.refresh()
} catch (error) { } catch (error) {
console.error(error)
notifications.error("Error creating user") notifications.error("Error creating user")
} }
} }

View File

@ -29,13 +29,11 @@ class UserStore extends BudiStore<UserState> {
data: [], data: [],
}) })
this.search = this.search.bind(this)
// Update quotas after any add or remove operation // Update quotas after any add or remove operation
this.create = this.refreshUsage(this.create) this.create = this.refreshUsage(this.create.bind(this))
this.save = this.refreshUsage(this.save) this.save = this.refreshUsage(this.save.bind(this))
this.delete = this.refreshUsage(this.delete) this.delete = this.refreshUsage(this.delete.bind(this))
this.bulkDelete = this.refreshUsage(this.bulkDelete) this.bulkDelete = this.refreshUsage(this.bulkDelete.bind(this))
} }
async search(opts: SearchUsersRequest = {}) { async search(opts: SearchUsersRequest = {}) {