console: add preview for phone command (#1451)

This commit is contained in:
Jan Herich 2017-07-15 19:41:54 +02:00 committed by Alexander Pantyuhov
parent f5348df929
commit 2adc02849f
1 changed files with 17 additions and 1 deletions

View File

@ -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);