Closed Bug 1806882 Opened 2 years ago Closed 2 years ago

Create a MutationObserver to ensure the new event and tasks creation buttons get disabled when needed

Categories

(Calendar :: Calendar Frontend, task)

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
111 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: aleca, Assigned: solange, Mentored)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The new "New Event" and "New Task" button implemented in bug 1803403 should be disabled and enabled dynamically depending if the we have a calendar and it supports tasks.

In the current UI, XUL buttons use the command method to automatically toggle the enabled state of those buttons.

For HTML buttons, we need to implement a MutationObserver to make sure we're aware of those changes.

We also need to implement tests to cover these new pieces of UI.

Status: NEW → ASSIGNED
Attachment #9312293 - Attachment description: WIP: Bug 1806882 - Create a MutationObserver to ensure the new event and tasks creation buttons get disabled when needed → WIP: Bug 1806882 - Create a MutationObserver to ensure the new event and tasks creation buttons get
Attachment #9312293 - Attachment description: WIP: Bug 1806882 - Create a MutationObserver to ensure the new event and tasks creation buttons get → Bug 1806882 - Create a MutationObserver to ensure the new event and tasks creation buttons get disabled when needed. r=aleca
Attachment #9312293 - Attachment description: Bug 1806882 - Create a MutationObserver to ensure the new event and tasks creation buttons get disabled when needed. r=aleca → Bug 1806882 - Dynamically ensure the new event and tasks creation buttons get disabled when needed. r=aleca
Target Milestone: --- → 111 Branch

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/71d97fbd9195
Dynamically ensure the new event and tasks creation buttons get disabled when needed. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: