mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
refactor: Add type field to pill items.
Item field is added to the pill items, this is done to utilize it wherever possible, to distinguish between diffrent types of pill items(stream|user_groups|users). It is also a preparatory commit to support expanding of stream and user group pills.
This commit is contained in:
committed by
Tim Abbott
parent
0a9678980f
commit
a2c7f35e5c
@@ -94,6 +94,11 @@ export function create(opts) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!item.type) {
|
||||
blueslip.error("no type defined for the item");
|
||||
return;
|
||||
}
|
||||
|
||||
const payload = {
|
||||
id,
|
||||
item,
|
||||
|
||||
Reference in New Issue
Block a user