mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-30 17:53:42 +00:00
FEATURE: Add quick access button to user profile dropdown (#130)
This commit is contained in:
parent
e48b817e8e
commit
a78b92ddcc
@ -15,6 +15,15 @@ export default {
|
||||
href: "/s",
|
||||
});
|
||||
}
|
||||
|
||||
const user = api.getCurrentUser();
|
||||
if (user) {
|
||||
api.addQuickAccessProfileItem({
|
||||
icon: "far-credit-card",
|
||||
href: `/u/${user.username}/billing/subscriptions`,
|
||||
content: "Billing",
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user