Skip to content

Commit

Permalink
Merge pull request #2141 from flowforge/admin-stats-token
Browse files Browse the repository at this point in the history
Only Generate admin stats token when asked
  • Loading branch information
knolleary authored May 15, 2023
2 parents 396c365 + 4b6781d commit be56986
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 be56986

Please sign in to comment.