testing actions on dynamic components load
This commit is contained in:
parent
4d5b634e55
commit
f060090b0c
@ -9,7 +9,7 @@
|
|||||||
type: 'chat'
|
type: 'chat'
|
||||||
};
|
};
|
||||||
|
|
||||||
const appCommandPattern = /@app:(\w+)/;
|
const appCommandPattern = /@(\w+)/;
|
||||||
const match = text.match(appCommandPattern);
|
const match = text.match(appCommandPattern);
|
||||||
if (match && match[1]) {
|
if (match && match[1]) {
|
||||||
message.composite = {
|
message.composite = {
|
||||||
@ -17,7 +17,8 @@
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
componentName: match[1], // Matched component name
|
componentName: match[1], // Matched component name
|
||||||
props: {}
|
props: {},
|
||||||
|
actions: ['ClearMessages']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user