Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only show the red 'Silence alarm' button when alarms are active #1316

Conversation

DanielMcInnes
Copy link
Contributor

Previously, we showed the red 'Silence alarm' button when an alert was active. Now, we shoe an orange 'Acknowledge alerts' button if only alerts are active, or a red 'Silence alarm' button if an alarm is active.

Fixes #1297

text: qsTrId("silence_alarm")
text: Global.notifications.alarm
//% "Silence alarm"
? qsTrId("silence_alarm")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer a more unique translation id, something like: "notifications_silence_alarm"

Previously, we showed the red 'Silence alarm' button when an alert was active.
Now, we shoe an orange 'Acknowledge alerts' button if only alerts are active,
or a red 'Silence alarm' button if an alarm is active.

Fixes #1297
@DanielMcInnes DanielMcInnes force-pushed the 1297-silence-alarms-button-on-notificationspage-is-showing-under-wrong-conditions branch from cc0884d to 6b1dc7a Compare July 11, 2024 06:39
@DanielMcInnes DanielMcInnes merged commit 7ce87d8 into main Jul 11, 2024
1 check passed
@DanielMcInnes DanielMcInnes deleted the 1297-silence-alarms-button-on-notificationspage-is-showing-under-wrong-conditions branch July 11, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Silence Alarms button on NotificationsPage is showing under wrong conditions
2 participants