fix displaying API Keys

rkmpp-v4l2m2m-decode
Moe 2022-11-28 13:35:51 -08:00
parent 42ac24f622
commit 2fc87629ce
1 changed files with 13 additions and 5 deletions

View File

@ -93,6 +93,14 @@ $(document).ready(function(e){
}
})
}
function loadApiKeys(){
getApiKeys(function(apiKeys){
apiKeyTable.empty()
$.each(apiKeys,function(n,row){
drawApiKeyRow(row)
})
})
}
theWindowForm.submit(function(e){
e.preventDefault()
writePermissionsFromFieldsToString()
@ -115,10 +123,10 @@ $(document).ready(function(e){
type: 'success'
})
})
getApiKeys(function(apiKeys){
apiKeyTable.empty()
$.each(apiKeys,function(n,row){
drawApiKeyRow(row)
})
addOnTabOpen('apiKeys', function () {
loadApiKeys()
})
addOnTabReopen('apiKeys', function () {
loadApiKeys()
})
})