console: add preview for phone command (#1451)
This commit is contained in:
parent
f5348df929
commit
2adc02849f
|
@ -467,7 +467,23 @@ var phoneConfig = {
|
||||||
type: status.types.PHONE,
|
type: status.types.PHONE,
|
||||||
suggestions: phoneSuggestions,
|
suggestions: phoneSuggestions,
|
||||||
placeholder: I18n.t('phone_placeholder')
|
placeholder: I18n.t('phone_placeholder')
|
||||||
}]
|
}],
|
||||||
|
preview: function (params) {
|
||||||
|
return {
|
||||||
|
markup: status.components.text(
|
||||||
|
{},
|
||||||
|
params.phone
|
||||||
|
)
|
||||||
|
};
|
||||||
|
},
|
||||||
|
shortPreview: function (params) {
|
||||||
|
return {
|
||||||
|
markup: status.components.text(
|
||||||
|
{},
|
||||||
|
params.phone
|
||||||
|
)
|
||||||
|
};
|
||||||
|
}
|
||||||
};
|
};
|
||||||
status.response(phoneConfig);
|
status.response(phoneConfig);
|
||||||
status.command(phoneConfig);
|
status.command(phoneConfig);
|
||||||
|
|
Loading…
Reference in New Issue