Opened 8 years ago

Closed 8 years ago

#2047 closed defect (fixed)

The "Share" and "Delete" icon in table listing seems to always be enabled

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: trivial Milestone: BASE 3.10
Component: web Version:
Keywords: Cc:

Description

Most GUI items in BASE appear dimmed and in grayscale if the the logged in user doesn't have permission to use the function. However, in table listing, the icon indicating that items are shared seems to always be active even if the logged in user doesn't have permission to change the sharing. Hovering with the mouse indicates that it can be clicked, but actually clicking doesn't make anything happen. The same goes for the "Delete" icon.

Change History (4)

comment:1 by Nicklas Nordborg, 8 years ago

I think this used to work before but got broken by all changes when redesigning the GUI in #1655 and getting rid of all inline javascript in #1712 and maybe some other tickets as well.

Fixing it should be as simple as modifying all list pages and change:

subclass="<%=sharePermission ? "table-share-item" : null %>"

to

subclass="<%=sharePermission ? "table-share-item" : "disabled" %>"

and similar for fixing the "Delete" icon.

comment:2 by Nicklas Nordborg, 8 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:3 by Nicklas Nordborg, 8 years ago

(In [7268]) References #2047: The "Share" and "Delete" icon in table listing seems to always be enabled

The "Share" icon has been fixed.

comment:4 by Nicklas Nordborg, 8 years ago

Resolution: fixed
Status: assignedclosed

(In [7269]) Fixes #2047: The "Share" and "Delete" icon in table listing seems to always be enabled

The "Delete" icon has been fixed.

Note: See TracTickets for help on using tickets.