mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Add rage button to debug menu (#15291)
* + Rage * tinkering * remove if statement wrapper and modify error message * add test cases * more work on test cases * adding contexts to test cases * test(debug): fix up tests * fix(lint): whisepate --------- Co-authored-by: Sabe Jones <sabe@habitica.com>
This commit is contained in:
@@ -399,6 +399,10 @@
|
||||
tooltip="+1000 to boss quests. 300 items to collection quests"
|
||||
@click="addQuestProgress()"
|
||||
>Quest Progress Up</a>
|
||||
<a
|
||||
class="btn btn-secondary"
|
||||
@click="bossRage()"
|
||||
>+ Boss Rage 😡</a>
|
||||
<a
|
||||
class="btn btn-secondary"
|
||||
@click="makeAdmin()"
|
||||
@@ -960,6 +964,10 @@ export default {
|
||||
// @TODO: Notification.text('Quest progress increased');
|
||||
// @TODO: User.sync();
|
||||
},
|
||||
async bossRage () {
|
||||
await axios.post('/api/v4/debug/boss-rage');
|
||||
},
|
||||
|
||||
async makeAdmin () {
|
||||
await axios.post('/api/v4/debug/make-admin');
|
||||
// @TODO: Notification.text('You are now an admin!
|
||||
|
||||
Reference in New Issue
Block a user