Closed Bug 1679813 Opened 5 years ago Closed 5 years ago

remove <deck> from calendar-subscriptions-dialog.xhtml

Categories

(Calendar :: General, task)

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: khushil324, Assigned: khushil324)

References

Details

Attachments

(1 file, 3 obsolete files)

Remove <deck> from https://searchfox.org/comm-central/rev/1fa5ebe1384434e904b33bb7de8f0a3d6e8bfdc5/calendar/base/content/dialogs/calendar-subscriptions-dialog.xhtml#64

Three children can be set hidden/not as appropriate instead of setting selectedIndex on the deck.

Summary: remove <deck> from calendar-event-dialog-recurrence.xhtml → remove <deck> from calendar-subscriptions-dialog.xhtml

I think there is no use of this children element so I have removed it: https://searchfox.org/comm-central/rev/1fa5ebe1384434e904b33bb7de8f0a3d6e8bfdc5/calendar/base/content/dialogs/calendar-subscriptions-dialog.xhtml#65-67
Now there are only two child elements. Any thoughts on this Aleca?

Attachment #9190327 - Flags: review?(alessandro)
Status: NEW → ASSIGNED
Comment on attachment 9190327 [details] [diff] [review] Bug-1679813_de-deck-calendar-event-dialog-recurrence-xhtml-0.patch Review of attachment 9190327 [details] [diff] [review]: ----------------------------------------------------------------- Silly question, but how do I enable the `Find Calendar...` menu item? ::: calendar/base/content/dialogs/calendar-subscriptions-dialog.js @@ +122,1 @@ > } Too many conditions and some unnecessary repetitions here. We can simplify with: if (!operation.isPending) { document.getElementById("calendar-subscriptions-status-busy").hidden = true; document.getElementById("calendar-subscriptions-status-nomatches").hidden = richListBox.getRowCount() > 0; }
Attachment #9190327 - Flags: review?(alessandro)

I have used this to open the dialog:

window.openDialog(
    "chrome://calendar/content/calendar-subscriptions-dialog.xhtml",
    "_blank",
    "chrome,titlebar,modal,resizable"
);
Attachment #9190327 - Attachment is obsolete: true
Attachment #9190470 - Flags: review?(alessandro)

Ah yes - IIRC the last use for this dialog was WCAP calendars. I think we should remove it since it can't in practice be reached from the UI.

Sure, I will update the patch.

Attachment #9190470 - Flags: review?(alessandro)
Attachment #9190470 - Attachment is obsolete: true
Attachment #9190502 - Flags: review?(alessandro)
Comment on attachment 9190502 [details] [diff] [review] Bug-1679813_remove-calendar-subscriptions-dialog-xhtml-0.patch Review of attachment 9190502 [details] [diff] [review]: ----------------------------------------------------------------- Good clean up, but you missed a little thing here: https://searchfox.org/comm-central/rev/8783b24ad5915927163977ea19a9968659b90d4c/calendar/base/content/calendar-management.js#615 This is the logic that was showing/hiding the menu item in the context menu. Be sure that we're not interacting with any of those parts anymore.
Attachment #9190502 - Flags: review?(alessandro) → feedback+

Yes, sorry, it was in mind but missed it in removing other files. Updating the patch now.

Attachment #9190502 - Attachment is obsolete: true
Attachment #9190637 - Flags: review?(alessandro)
Comment on attachment 9190637 [details] [diff] [review] Bug-1679813_remove-calendar-subscriptions-dialog-xhtml-1.patch Review of attachment 9190637 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, thanks.
Attachment #9190637 - Flags: review?(alessandro) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/3081153fc8c7
remove calendar subscriptions dialog. r=aleca

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

Attachment

General

Created:
Updated:
Size: