0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Fix log message for Disable notifications (#9339)

* Fix log message for `Disable notifications`

* Add changeset
This commit is contained in:
Shinya Fujino 2023-12-06 19:44:07 +09:00 committed by GitHub
parent 895ebcb5bf
commit 0bb3d53221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixed the log message to correctly display 'enabled' and 'disabled' when toggling 'Disable notifications' in the Toolbar.

View file

@ -25,7 +25,7 @@ const settingsRows = [
} }
settings.updateSetting('disablePluginNotification', evt.currentTarget.checked); settings.updateSetting('disablePluginNotification', evt.currentTarget.checked);
const action = evt.currentTarget.checked ? 'enabled' : 'disabled'; const action = evt.currentTarget.checked ? 'disabled' : 'enabled';
settings.log(`Plugin notification badges ${action}`); settings.log(`Plugin notification badges ${action}`);
} }
}, },