Skip to content

Commit

Permalink
Merge pull request #2145 from flowforge/backport-2141
Browse files Browse the repository at this point in the history
Only Generate admin stats token when asked (backport #2141)
  • Loading branch information
knolleary authored May 15, 2023
2 parents 2bfd761 + 5171eff commit 4fa3324
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/pages/admin/Settings/General.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ export default {
})
this.platformStatsTokenEnabled = this.input['platform:stats:token']
this.platformStatsToken = ''
if (!this.platformStatsTokenEnabled) {
this.platformStatsToken = ''
}
},
watch: {
platformStatsTokenEnabled: function (newValue) {
Expand Down Expand Up @@ -356,6 +358,7 @@ export default {
disableStatsToken () {
this.$refs.disablePlatformStatsToken.close()
this.platformStatsToken = ''
this.platformStatsTokenEnabled = false
adminApi.deleteStatsAccessToken().then(result => {})
}
},
Expand Down

0 comments on commit 4fa3324

Please sign in to comment.