mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-09 08:05:41 +08:00
fix(account settings): ape keys table not displaying correctly
This commit is contained in:
parent
5243d146db
commit
ed47e2ff91
2 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
&[data-tab="api"] {
|
||||
&[data-tab="apeKeys"] {
|
||||
table {
|
||||
width: 100%;
|
||||
border-spacing: 0;
|
||||
|
|
|
@ -157,7 +157,7 @@ const generateApeKey = new SimpleModal({
|
|||
|
||||
let apeKeys: ApeKeys | null = {};
|
||||
|
||||
const element = $("#pageAccountSettings .tab[data-tab='api']");
|
||||
const element = $("#pageAccountSettings .tab[data-tab='apeKeys']");
|
||||
|
||||
async function getData(): Promise<boolean> {
|
||||
showLoaderRow();
|
||||
|
@ -277,7 +277,7 @@ let lostAccess = false;
|
|||
|
||||
export async function update(onApeKeyChangee?: () => void): Promise<void> {
|
||||
if (lostAccess) {
|
||||
$(".pageAccountSettings .tab[data-tab='api'] table").remove();
|
||||
$(".pageAccountSettings .tab[data-tab='apeKeys'] table").remove();
|
||||
$(".pageAccountSettings .section.apeKeys .buttons").remove();
|
||||
$(".pageAccountSettings .section.apeKeys .lostAccess").removeClass(
|
||||
"hidden"
|
||||
|
|
Loading…
Add table
Reference in a new issue