Update plugins.js

This commit is contained in:
Wyatt Johnson
2018-02-26 08:48:11 -07:00
committed by GitHub
parent 9158faf295
commit d1951c8504
@@ -135,6 +135,10 @@ class PluginsService {
.filter(o => o.module.slots && o.module.slots[slot])
.map(o => o.module.slots[slot])
);
if (slotSize > 0 && slots.length > slotSize) {
console.warn(`Slot[${slot}] supports a maximum of ${slotSize} plugins providing slots, got ${slots.length}, will only use the first ${slotSize}`);
}
return (slotSize > 0 ? slots.slice(0, slotSize) : slots)
.map((component, i) => ({