From 368dc97497e0afca9eb6a19d9c7cd6fcc0e8b1b7 Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Wed, 29 Jan 2025 14:31:29 -0500 Subject: [PATCH] chore: Add alerts to debug menu when operations are completed --- website/client/src/components/appFooter.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/client/src/components/appFooter.vue b/website/client/src/components/appFooter.vue index c7fa31f5c0..1c08ed50f7 100644 --- a/website/client/src/components/appFooter.vue +++ b/website/client/src/components/appFooter.vue @@ -920,13 +920,13 @@ export default { await axios.post('/api/v4/debug/set-cron', { lastCron: date, }); - // @TODO: Notification.text('-' + numberOfDays + ' day(s), remember to refresh'); + window.alert(`Days reset by ${numberOfDays}.\nRemember to refresh.`); // @TODO: Sync user? }, async addTenGems () { await axios.post('/api/v4/debug/add-ten-gems'); - // @TODO: Notification.text('+10 Gems!'); this.user.balance += 2.5; + window.alert('+10 Gems!'); }, async addHourglass () { await axios.post('/api/v4/debug/add-hourglass'); @@ -990,17 +990,17 @@ export default { }, async addQuestProgress () { await axios.post('/api/v4/debug/quest-progress'); - // @TODO: Notification.text('Quest progress increased'); + window.alert('Quest progress increased.'); // @TODO: User.sync(); }, async bossRage () { await axios.post('/api/v4/debug/boss-rage'); + window.alert('Boss Rage increased.'); }, async makeAdmin () { await axios.post('/api/v4/debug/make-admin'); - // @TODO: Notification.text('You are now an admin! - // Reload the website then go to Help > Admin Panel to set contributor level, etc.'); + window.alert('You are now an Admin!\nReload the website then go to Help > Admin to set contributor level, etc.'); // @TODO: sync() }, donate () {