[de-xbl] Remove calendar-subscriptions-richlistbox binding.
Categories
(Calendar :: Lightning Only, enhancement)
Tracking
(Not tracked)
People
(Reporter: arshad, Assigned: arshad)
References
Details
Attachments
(2 files, 3 obsolete files)
811.48 KB,
image/png
|
Details | |
7.45 KB,
patch
|
arshad
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Comment on attachment 9041716 [details] [diff] [review] calendar-subscriptions-richlistbox.patch Review of attachment 9041716 [details] [diff] [review]: ----------------------------------------------------------------- Where/how can I access this dialog? Please add that to the documentation ::: calendar/base/content/dialogs/calendar-subscriptions-dialog.js @@ +15,5 @@ > +if (!customElements.get("richlistbox")) { > + delete document.createElement("richlistbox"); > +} > + > +class MozCalendarSubscriptionsRichlistbox extends customElements.get("richlistbox") { please add documentation, as in "This widget is typically found at.... and used to ...." @@ +16,5 @@ > + delete document.createElement("richlistbox"); > +} > + > +class MozCalendarSubscriptionsRichlistbox extends customElements.get("richlistbox") { > + addCalendar(aCalendar, bSubscribed) { remove a and b conventions
Assignee | ||
Comment 3•6 years ago
|
||
I am not sure here as well, when the Find Calendar option in list-calendar-context-menu
(https://searchfox.org/comm-central/source/calendar/base/content/calendar-calendars-list.xul#32) is enabled. Clickin on that opens the dialog which has caleendar-subscription-richlistbox.
Comment 4•6 years ago
|
||
So how did you test it? Please find out and document it.
Assignee | ||
Comment 5•6 years ago
|
||
hey when does find calendar
option visible(not collapsed) in the popup menu? I have setup caldav calendar for my google account.
Assignee | ||
Comment 6•6 years ago
|
||
this is the popup menu I am talking about - https://searchfox.org/comm-central/source/calendar/base/content/calendar-calendars-list.xul#32
Comment 7•6 years ago
|
||
As far I can see, currently only the wcap provider uses that feature, so maybe setting up a fake subscription could trigger enabling that menu item. I'm not aware of any public wcap calendar services. If that doesn't work, you can trigger the dialog that gets opened by the menu item from the error console.
Maybe Philipp's wip patch for caldav calendar discovery that missed the TB60 train might also enable the button. You may want to ping him for a debitrotted patch to check it.
Assignee | ||
Comment 8•6 years ago
|
||
(In reply to [:MakeMyDay] from comment #7)
As far I can see, currently only the wcap provider uses that feature, so maybe setting up a fake subscription could trigger enabling that menu item. I'm not aware of any public wcap calendar services. If that doesn't work, you can trigger the dialog that gets opened by the menu item from the error console.
Maybe Philipp's wip patch for caldav calendar discovery that missed the TB60 train might also enable the button. You may want to ping him for a debitrotted patch to check it.
Already did, I think he is busy.
Assignee | ||
Comment 9•6 years ago
|
||
The patch is same as calendar-invitations-richlistbox because the the element is same except the name. I tried hacking a few things and adding richlistitem inside it. The UI to me look ok and the vertical alignment of label and checkbox that you see in the screenshot is not related to this patch.
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Comment on attachment 9045631 [details] [diff] [review] calendar-subscriptions-richlistbox.patch Review of attachment 9045631 [details] [diff] [review]: ----------------------------------------------------------------- I think it makes sense to inline this too, like the other one this is also just used once, and there is not much behavior
Assignee | ||
Comment 12•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 13•6 years ago
|
||
Comment on attachment 9045905 [details] [diff] [review] calendar-subscriptions-richlistbox.patch Review of attachment 9045905 [details] [diff] [review]: ----------------------------------------------------------------- ::: calendar/base/content/dialogs/calendar-subscriptions-dialog.xul @@ +51,5 @@ > value="&calendar.subscriptions.dialog.select.label.value;" > crop="end"/> > </row> > <row flex="1"> > + <richlistbox id="subscriptions-listbox" flex="1"/> NOTE: this will add those scrollbar and opther elements that get appended by richlistbox ce. I dont think they might cause any problem.
Comment 14•6 years ago
|
||
Comment on attachment 9045905 [details] [diff] [review] calendar-subscriptions-richlistbox.patch Review of attachment 9045905 [details] [diff] [review]: ----------------------------------------------------------------- Didn't test it, but looks correct to me.
Comment 15•6 years ago
|
||
Comment on attachment 9045905 [details] [diff] [review] calendar-subscriptions-richlistbox.patch Review of attachment 9045905 [details] [diff] [review]: ----------------------------------------------------------------- ::: calendar/base/content/dialogs/calendar-subscriptions-dialog.js @@ +102,5 @@ > let richListBox = document.getElementById("subscriptions-listbox"); > + > + while (richListBox.hasChildNodes()) { > + richListBox.lastChild.remove(); > + } You can use this helper: https://searchfox.org/comm-central/source/calendar/base/content/calendar-ui-utils.js#226
Comment 16•6 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] [:π] from comment #15)
You can use this helper:
https://searchfox.org/comm-central/source/calendar/base/content/calendar-ui-utils.js#226
Helpers that do that little should really be killed off asap. That just adds complexity and making it harder for people to work on the coede. It's like having a helper for a for loop. Wait, that's not like - it is a helper for a loop!
Assignee | ||
Comment 17•6 years ago
|
||
Assignee | ||
Comment 18•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 19•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/42de459b3e60
Migrate calendar-subscriptions-richlistbox binding to custom element. r=philipp
Updated•6 years ago
|
Description
•