openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.NotificationListGroup showEmptyGroup="true" buttons disabled on items.length = 1

Open hschaefer123 opened this issue 10 years ago • 3 comments

OpenUI5 version: openui5 nightly

Browser/version (+device/version): any

This is a follop up issue for #1086 https://github.com/SAP/openui5/issues/1086

If i am using the new introduce showEmptyGroup="true

my notification list group button are enable if there is no notification list item. After adding one list item, the buttons get disabled but are still visible.

The other way aorund having some notification items i still have group buttons enabled, deleting notification items is ok, but if i have at least one notification item, the group buttons are disabled again.

Regards Holger

hschaefer123 avatar Aug 12 '16 10:08 hschaefer123

Hi, yes, at least when there are no items the disabled state of the buttons is wrong. The code says // disable buttons when visible items are just 1 so it apparently wasn't updated for the new feature. I opened internal ticket 1680231533 for this.

Thanks Andreas

akudev avatar Aug 16 '16 09:08 akudev

Closed a minute ago. In fact the semantic of the footer is to hold buttons designed for mass processing like "Close All", "Accept All" and etc. In this case when there is just a single item, it is not likely to keep enabled the mass processing buttons. Anyway, in your case, buttons will be kept enabled

evkatsarski avatar Aug 17 '16 10:08 evkatsarski

Hi, from SAP Fiori point of view maybe there is a semantic meaning, but from a general point of view, this widget is a core component.

This means there should not be a dependency between notificitiongroup and notificaitonitem. The semantic depends on the usage. In SAP FLP case, maybe the usage is handling notifications only.

Even from a performance perspective, the core widget should never handle enable/disable actions etc. depending on used child items. For that reason, i would expect to use a dereived/extended core notificationgroup widget for the semantic szenario. A lot of widgets are fighting with performance, bevause they are too heavy.

From OpenUI5 perspective, this is a core sap.m widget anh should not have any reference/semantic dependency.

Did i understood you right, that in the case of showEmptyGroup="true" the widget behaves as expected and all actions are enabled?

Regards Holger

hschaefer123 avatar Aug 17 '16 13:08 hschaefer123