Task #8709 (closed)
Web actions enabled from jsTree
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4 |
Component: | Web | Version: | n.a. |
Keywords: | n.a. | Cc: | atarkowska, cxallan |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2012-05-08 (14) |
Description
Once we have classes on all jsTree nodes to indicate whether we can Edit, Delete, Link etc #8708 we need to update various actions based on selected nodes.
Toolbar actions on selected nodes:
- Create, Cut, Paste - only if 'canLink'
- Delete - only if 'canDelete'
Right-click actions on nodes:
- Create, Cut, Paste - only if 'canLink'
- Delete - only if 'canDelete'
Drag:
- Drag if 'canLink'
{{{ "start_drag" : function (obj) {return obj.hasClass('canLink');},
Change History (5)
comment:1 Changed 12 years ago by wmoore
- Status changed from new to accepted
comment:2 Changed 12 years ago by wmoore
- Remaining Time changed from 1 to 0
- Resolution set to fixed
- Status changed from accepted to closed
comment:3 Changed 12 years ago by Will Moore <will@…>
(In [6dd12f25906bf39d2e2b8dcf160eba9fcb071e14/ome.git] on branch develop) Toolbar enabled wrt selected.canLink() & canDelete(). See #8709
comment:4 Changed 12 years ago by Will Moore <will@…>
(In [e088cd232665ea39b64f3e33c37e8fcf6a8fc9f9/ome.git] on branch develop) jsTree nodes 'start_drag' === canLink(). See #8709
Removed other actions from the nodes config, since these are specified elsewhere for
toolbar or right-click actions.
comment:5 Changed 12 years ago by Will Moore <will@…>
(In [c72c4d2bb9b790272e36f367625fbc7d093997b0/ome.git] on branch develop) Right-click jsTree menu enabled with canLink() etc. See #8709
Right-click menu https://github.com/will-moore/openmicroscopy/commit/c72c4d2bb9b790272e36f367625fbc7d093997b0
Toolbar https://github.com/will-moore/openmicroscopy/commit/e088cd232665ea39b64f3e33c37e8fcf6a8fc9f9 (and previous commit)
updated from canLink etc classes on tree nodes.
Closing...