FEATURE: Add quick access button to user profile dropdown (#130)

This commit is contained in:
Blake Erickson 2022-08-10 13:05:54 +01:00 committed by GitHub
parent e48b817e8e
commit a78b92ddcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,15 @@ export default {
href: "/s", href: "/s",
}); });
} }
const user = api.getCurrentUser();
if (user) {
api.addQuickAccessProfileItem({
icon: "far-credit-card",
href: `/u/${user.username}/billing/subscriptions`,
content: "Billing",
});
}
}); });
}, },
}; };