fix(llm.gblib): Fix in doc. publishing.
This commit is contained in:
parent
a443927d36
commit
6168275d92
2 changed files with 20 additions and 12 deletions
|
@ -1287,16 +1287,20 @@ export class GBMinService {
|
||||||
*/
|
*/
|
||||||
private async processEventActivity(min, user, context, step: GBDialogStep) {
|
private async processEventActivity(min, user, context, step: GBDialogStep) {
|
||||||
const pid = step.context.activity['pid'];
|
const pid = step.context.activity['pid'];
|
||||||
if (context.activity.name === 'whoAmI') {
|
|
||||||
await step.beginDialog('/whoAmI');
|
const contentLocale = min.core.getParam(
|
||||||
} else if (context.activity.name === 'showSubjects') {
|
min.instance,
|
||||||
await step.beginDialog('/menu', undefined);
|
'Default Content Language',
|
||||||
} else if (context.activity.name === 'giveFeedback') {
|
GBConfigService.get('DEFAULT_CONTENT_LANGUAGE')
|
||||||
await step.beginDialog('/feedback', {
|
);
|
||||||
fromMenu: true
|
|
||||||
});
|
if (context.activity.name === 'showSubjects') {
|
||||||
|
await step.replaceDialog('/answer', { query: `Show a list of subjects you can help me in ${contentLocale} language.` });
|
||||||
|
|
||||||
|
|
||||||
} else if (context.activity.name === 'showFAQ') {
|
} else if (context.activity.name === 'showFAQ') {
|
||||||
await step.beginDialog('/faq');
|
await step.replaceDialog('/answer', { query: `Show a FAQ for me about how can you help me in a bullet list, in ${contentLocale} language.` });
|
||||||
|
|
||||||
} else if (context.activity.name === 'answerEvent') {
|
} else if (context.activity.name === 'answerEvent') {
|
||||||
await step.beginDialog('/answerEvent', <AskDialogArgs>{
|
await step.beginDialog('/answerEvent', <AskDialogArgs>{
|
||||||
questionId: context.activity.data,
|
questionId: context.activity.data,
|
||||||
|
|
|
@ -61,8 +61,10 @@ class SideBarMenu extends React.Component {
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="iconMenu">
|
<div className="iconMenu">
|
||||||
<span className="iconText" onClick={() => this.send("whoAmI")}>
|
<span className="iconText"
|
||||||
Who are You?
|
onClick={() => window.open(`https://pragmatismo.sharepoint.com/sites/bots/Online/${this.props.instance.botId}.gbai`)}
|
||||||
|
>
|
||||||
|
Drive
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="iconMenu">
|
<div className="iconMenu">
|
||||||
|
@ -75,9 +77,11 @@ class SideBarMenu extends React.Component {
|
||||||
<div className="iconMenu">
|
<div className="iconMenu">
|
||||||
<span
|
<span
|
||||||
className="iconText"
|
className="iconText"
|
||||||
onClick={() => this.send("giveFeedback")}>
|
onClick={() => window.open('mailto:talk@pragmatismo.cloud')}
|
||||||
|
>
|
||||||
Suggestions
|
Suggestions
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue