Closed Bug 340560 Opened 19 years ago Closed 19 years ago

Integrate the replication progress dialog into the LDAP directory properties window

Categories

(MailNews Core :: Address Book, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Keywords: fixed-seamonkey1.1a, fixed1.8.1)

Attachments

(3 files, 3 obsolete files)

The replication progress dialog doesn't really need to be a separate window, there is some nice real estate available in the directory properites window just underneath the download button. So combining them should reduce codesize. Additionally this will let us fix some bugs with it like trying to kick off a replication process twice by accidently double clicking on the button etc. I've a patch coming up.
Attached patch Patch v1 (obsolete) — Splinter Review
The patch. Implementation for both sm & tb.
Attachment #224599 - Flags: review?(neil)
Blocks: 135212
Comment on attachment 224599 [details] [diff] [review] Patch v1 >+ document.getElementById("download").label = >+ gReplicationBundle.getString("downloadButton"); I'm not convinced that this can be accessibly localised, but feel free to double-check with KaiRo. >+ gProgressMeter.setAttribute("mode","undetermined"); Nit: space after comma (and also in EndDownload). >+ gDownloadInProgress = true; This is confusing because clicking the button changes it into a cancel button without changing this flag, so it doesn't actually cancel yet. Maybe you should change the button here too. >+ EndDownload(aStatus); This confused me until I realised that the C++ is actually abusing nsresults. >+ gProgressText.value = >+ gReplicationBundle.getString(aStatus ? "replicationSucceeded" : >+ (gReplicationCancelled ? "replicationCancelled" : >+ "replicationFailed")); Nit: don't need ()s as ?: is right associative.
Attachment #224599 - Flags: review?(neil) → review+
(In reply to comment #2) > (From update of attachment 224599 [details] [diff] [review] [edit]) > >+ document.getElementById("download").label = > >+ gReplicationBundle.getString("downloadButton"); > I'm not convinced that this can be accessibly localised, but feel free to > double-check with KaiRo. Well the two labels that could be used both contain "D" which I've set permantely. I can do Alt-D for both of them (on Linux) and that works fine.
Attached patch Patch v2 (obsolete) — Splinter Review
Addressed Neil's comments and carried forward his sr.
Attachment #224599 - Attachment is obsolete: true
Attachment #225137 - Flags: superreview?(bienvenu)
Attachment #225137 - Flags: review+
(In reply to comment #4) > Addressed Neil's comments and carried forward his sr. Sorry, I meant r.
Status: NEW → ASSIGNED
(In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 224599 [details] [diff] [review] [edit] [edit]) > > >+ document.getElementById("download").label = > > >+ gReplicationBundle.getString("downloadButton"); > > I'm not convinced that this can be accessibly localised, but feel free to > > double-check with KaiRo. > > Well the two labels that could be used both contain "D" which I've set > permantely. I can do Alt-D for both of them (on Linux) and that works fine. Please don't do this. How do you know that all languages contain the same character in both strings and have no conflict of that character with other access keys?
Comment on attachment 225137 [details] [diff] [review] Patch v2 Cancelling review due to KaiRo's comments.
Attachment #225137 - Flags: superreview?(bienvenu)
Attached patch Patch v3 (obsolete) — Splinter Review
New patch that uses two buttons in the xul - it appears that the access key can't be changed dynamically from js, and therefore we need two buttons. Requesting review again due to the changes required.
Attachment #225137 - Attachment is obsolete: true
Attachment #225157 - Flags: review?(neil)
Based on the patch this uses two access keys for the button to avoid localisation issues.
Attachment #225157 - Attachment is obsolete: true
Attachment #225180 - Flags: superreview?(bienvenu)
Attachment #225180 - Flags: review?(neil)
Attachment #225157 - Flags: review?(neil)
Attachment #225180 - Flags: review?(neil) → review+
Attachment #225180 - Flags: superreview?(bienvenu) → superreview+
I forgot to remove the references to the old files from the jar.mn files.... thankfully I haven't removed the old ones yet.
Attachment #225287 - Flags: superreview?(bienvenu)
Attachment #225287 - Flags: review?(bienvenu)
Attachment #225287 - Flags: superreview?(bienvenu)
Attachment #225287 - Flags: superreview+
Attachment #225287 - Flags: review?(bienvenu)
Attachment #225287 - Flags: review+
Attachment #225180 - Attachment description: Patch v4 → Patch v4 (checked in to trunk)
Attachment #225287 - Attachment description: Remove old file references from the jar.mn files. → Remove old file references from the jar.mn files (checked in to trunk)
This patch combines the previous two for branch checkin (no other changes). Requesting branch approval - this would be a nice little enhancement to the ldap setup for SeaMonkey & Thunderbird. Should be low risk. It has some l10n impact so I'd like to get it in before 15th June if possible - though I don't know if that just applies to firefox or not.
Attachment #225297 - Flags: approval-branch-1.8.1?(bienvenu)
Attachment #225297 - Flags: approval-branch-1.8.1?(bienvenu) → approval-branch-1.8.1+
Attachment #225297 - Attachment description: Combined patch for branch. → Combined patch for branch (checked in)
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
*** Bug 133886 has been marked as a duplicate of this bug. ***
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: