Closed Bug 1770716 Opened 2 years ago Closed 2 years ago

Display a message when there are no contacts in the contact list

Categories

(Thunderbird :: Address Book, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED
102 Branch

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file, 1 obsolete file)

Instead of a big empty space, if there are no address book contacts the list should display a message and a button to add a contact. I think the best way to do that is to define a new slot on TreeViewListbox which is only visible if there are no rows. We may need to fine-tune a few event listeners so that they only operate if there are rows.

The view is for displaying a list of contacts, not for other interactive widgets like buttons. If we want this behaviour, the button should just be a separate element in the DOM.

Not a button, but to show we don't have any results, you could do like we do for quick filter: https://searchfox.org/comm-central/search?q=quickFilterBar.resultsLabel.none&path=&case=true&regexp=false

Attachment #9277764 - Attachment is obsolete: true

I'll do it another way then. I thought what I can up with was a tidy solution, but whatever.

Component: General → Address Book
Summary: TreeViewListbox needs a way to show some filler content if there are no rows → Display a message when there are no contacts in the contact list
Target Milestone: --- → 102 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b331dfebda68
Display a message when there are no contacts in the contact list. 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

Created:
Updated:
Size: