Skip to content

Commit 0bb3d53

Browse files
authoredDec 6, 2023
Fix log message for Disable notifications (#9339)
* Fix log message for `Disable notifications` * Add changeset
1 parent 895ebcb commit 0bb3d53

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/strange-parrots-promise.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fixed the log message to correctly display 'enabled' and 'disabled' when toggling 'Disable notifications' in the Toolbar.

‎packages/astro/src/runtime/client/dev-overlay/plugins/settings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const settingsRows = [
2525
}
2626

2727
settings.updateSetting('disablePluginNotification', evt.currentTarget.checked);
28-
const action = evt.currentTarget.checked ? 'enabled' : 'disabled';
28+
const action = evt.currentTarget.checked ? 'disabled' : 'enabled';
2929
settings.log(`Plugin notification badges ${action}`);
3030
}
3131
},

0 commit comments

Comments
 (0)
Please sign in to comment.