Closed
Bug 940697
Opened 11 years ago
Closed 11 years ago
Tasks have some menu items and controls wrongly enabled when the calendar is read-only.
Categories
(Calendar :: Tasks, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.9
People
(Reporter: bv1578, Assigned: bv1578)
Details
Attachments
(1 file)
5.65 KB,
patch
|
mmecca
:
review+
Fallen
:
approval-calendar-aurora+
Fallen
:
approval-calendar-beta+
|
Details | Diff | Splinter Review |
Steps to reproduce: Create a new task and then set the related calendar in read-only status, then take a look at the following elements: - menu item "Mark Completed" in the context menu (task view and today-pane); - button "Mark Completed" in the task-action toolbar (task view); - checkbox "Done" in the task list (task view and today-pane); these elements are enabled (or get enabled when the context menu appears). Clicking on them causes an error message "An error occurred when writing to the calendar ....!" and the yellow triangle appears beside the calendar in the calendar list. - "Cut" menu item in the context menu; - "Delete task" menu item in the context menu; are enabled but they don't cause any problem when clicked. Hovering with the mouse pointer over any menu item with a submenu (Progress, Priority, ...) causes the correct disabled status of the "Mark Completed" and "Cut" menu items in the context menu.
Not completely clear why, but it seems that some commands need to be updated before showing the context menu. I've also changed the behavior of the menu items "Progress" "Priority" and "Postpone Task" in order to make them consistent with the same items in the main menu that are disabled at the first level instead of being enabled and showing a submenu with all disabled options. The patch disables the action on the "Done" checkboxes in the tasks list, but doesn't disable the checkboxes because I'm having problems in doing it correctly in all the cases. If you agree I will try in another patch or another bug.
Attachment #8339209 -
Flags: review?(matthew.mecca)
Comment 2•11 years ago
|
||
(In reply to Decathlon from comment #1) > The patch disables the action on the "Done" checkboxes in the tasks list, > but doesn't disable the checkboxes because I'm having problems in doing it > correctly in all the cases. If you agree I will try in another patch or > another bug. I'd suggest adding "readonly" as a return value for getProgressAtom here: http://mxr.mozilla.org/comm-central/source/calendar/base/src/calUtils.js#1137 then use the "disabled" checkbox image in the css rule like here: http://mxr.mozilla.org/comm-central/source/calendar/base/themes/windows/calendar-task-tree.css#21 I think that's fine for a separate bug.
Comment 3•11 years ago
|
||
Comment on attachment 8339209 [details] [diff] [review] Patch - v1 Looks good. r=mmecca
Attachment #8339209 -
Flags: review?(matthew.mecca) → review+
(In reply to Matthew Mecca [:mmecca] from comment #2) > > I'd suggest adding "readonly" as a return value for getProgressAtom here: > ... The problem is about the way to control it properly. I will ask you something more specific ;)
Pushed to comm-central: https://hg.mozilla.org/comm-central/rev/2c9924d0479d Since the bug causes a message error displayed directly to the user, I'm asking if it worths to apply the patch on comm-aurora and/or comm-beta.
Attachment #8339209 -
Flags: approval-calendar-beta?(philipp)
Attachment #8339209 -
Flags: approval-calendar-aurora?(philipp)
Updated•11 years ago
|
Target Milestone: --- → 3.0
Comment 6•11 years ago
|
||
Comment on attachment 8339209 [details] [diff] [review] Patch - v1 I'm fine with aurora/beta :) a=philipp
Attachment #8339209 -
Flags: approval-calendar-beta?(philipp)
Attachment #8339209 -
Flags: approval-calendar-beta+
Attachment #8339209 -
Flags: approval-calendar-aurora?(philipp)
Attachment #8339209 -
Flags: approval-calendar-aurora+
Pushed to comm-beta http://hg.mozilla.org/releases/comm-beta/rev/9bcdf8272b72 The patch has been automatically applied in comm-aurora with the new branches.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: 3.0 → 2.9
You need to log in
before you can comment on or make changes to this bug.
Description
•