|
|
|
@ -23,7 +23,8 @@ const initialState = { |
|
|
|
|
text: '', |
|
|
|
|
key: '', |
|
|
|
|
title: '', |
|
|
|
|
type: '' |
|
|
|
|
type: '', |
|
|
|
|
pluginName: '' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function OtherIcons ({ verticalIconsPlugin, itemContextAction, addActive, removeActive }: OtherIconsProps) { |
|
|
|
@ -33,12 +34,12 @@ function OtherIcons ({ verticalIconsPlugin, itemContextAction, addActive, remove |
|
|
|
|
Object.keys(verticalIconsPlugin.targetProfileForChange) |
|
|
|
|
.filter(customFilter) |
|
|
|
|
.forEach(p => |
|
|
|
|
verticalIconsPlugin.on(verticalIconsPlugin.targetProfileForChange[p].name, 'statusChanged', (evt: Event, iconStatus: IconStatus) => { |
|
|
|
|
verticalIconsPlugin.on(verticalIconsPlugin.targetProfileForChange[p].name, 'statusChanged', (iconStatus: IconStatus) => { |
|
|
|
|
iconStatus.pluginName = verticalIconsPlugin.targetProfileForChange[p].name |
|
|
|
|
const action: IconBadgeReducerAction = { |
|
|
|
|
type: verticalIconsPlugin.targetProfileForChange[p].name, |
|
|
|
|
payload: { status: iconStatus, verticalIconPlugin: verticalIconsPlugin } |
|
|
|
|
} |
|
|
|
|
console.log('check the event payload', { evt }) |
|
|
|
|
dispatchStatusUpdate(action) |
|
|
|
|
})) |
|
|
|
|
}, [verticalIconsPlugin.targetProfileForChange, Object.keys(verticalIconsPlugin.targetProfileForChange).length]) |
|
|
|
|