Browse Source

fix: token load on delete

pull/6420/head
sreehari jayaraj 1 year ago
parent
commit
a07bfcf113
  1. 4
      packages/nc-gui/components/account/Token.vue

4
packages/nc-gui/components/account/Token.vue

@ -84,6 +84,10 @@ const deleteToken = async (token: string): Promise<void> => {
await api.orgTokens.delete(token)
// message.success(t('msg.success.tokenDeleted'))
await loadTokens()
if (!tokens.value.length && currentPage.value !== 1) {
currentPage.value--
loadTokens(currentPage.value)
}
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
}

Loading…
Cancel
Save