Skip to content

Commit 170ac8d

Browse files
authored
Use /api_key instead of /api_key/detailed (#48)
1 parent edc5d0c commit 170ac8d

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### nova-dashboard, 0.20.4
2+
3+
* Changed the endpoint used to retrieve the Galaxy API key to generate a new key if needed (thanks to John Duggan).
4+
15
### nova-dashboard, 0.20.3
26

37
* Fix redirection to invalid page when underlying Galaxy instance is restarted (thanks to John Duggan).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "nova-dashboard"
3-
version = "0.20.3"
3+
version = "0.20.4"
44
description = ""
55
authors = [
66
{ name = "Yakubov, Sergey", email = "yakubovs@ornl.gov" },

src/vue/src/stores/user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export const useUserStore = defineStore("user", {
3939
return
4040
}
4141

42-
const apiKeyResponse = await fetch(`/api/users/${this.id}/api_key/detailed`)
43-
const apiKeyData = await apiKeyResponse.json()
44-
this.apiKey = apiKeyData.key
42+
const apiKeyResponse = await fetch(`/api/users/${this.id}/api_key`)
43+
const apiKey = await apiKeyResponse.text()
44+
this.apiKey = apiKey.replace('"', "")
4545

4646
this.getAdmin()
4747
},

0 commit comments

Comments
 (0)