File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ export class GBMinService {
458
458
if ( context . activity . name === 'whoAmI' ) {
459
459
await step . beginDialog ( '/whoAmI' ) ;
460
460
} else if ( context . activity . name === 'showSubjects' ) {
461
- await step . beginDialog ( '/menu' ) ;
461
+ await step . beginDialog ( '/menu' , undefined ) ;
462
462
} else if ( context . activity . name === 'giveFeedback' ) {
463
463
await step . beginDialog ( '/feedback' , {
464
464
fromMenu : true
Original file line number Diff line number Diff line change @@ -76,18 +76,20 @@ export class MenuDialog extends IGBDialog {
76
76
const user = await min . userProfile . get ( step . context , { } ) ;
77
77
const args : MenuDialogArgs = step . options ;
78
78
79
- let rootSubjectId ;
79
+ // tslint:disable-next-line: no-null-keyword
80
+ let rootSubjectId = null ;
80
81
81
- if ( args !== undefined ) {
82
+ if ( Object . keys ( args ) . length > 0 ) {
82
83
// If there is a shortcut specified as subject destination, go there.
83
- if ( args . to !== undefined ) {
84
+ if ( args . to !== null ) {
84
85
const dialog = args . to . split ( ':' ) [ 1 ] ;
85
86
86
87
return await step . replaceDialog ( `/${ dialog } ` ) ;
87
88
}
88
89
89
90
user . subjects . push ( args ) ;
90
- rootSubjectId = args . subjectId ;
91
+ // tslint:disable-next-line: no-null-keyword
92
+ rootSubjectId = args . subjectId === undefined ? null : args . subjectId ;
91
93
92
94
// Whenever a subject is selected, shows a faq about it.
93
95
if ( user . subjects . length > 0 ) {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export class KBService {
73
73
}
74
74
75
75
public static getFormattedSubjectItems ( subjects : GuaribasSubject [ ] ) {
76
- if ( subjects ! == null ) {
76
+ if ( subjects = == null ) {
77
77
return '' ;
78
78
}
79
79
const out = [ ] ;
Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ export const Messages = {
10
10
here_is_subjects : 'Here are some subjects to choose from...' ,
11
11
menu_select : 'Select' ,
12
12
lets_search : query =>
13
- `Vamos pesquisar sobre ${ query } ... O que deseja saber?` ,
14
- see_faq :
15
- 'Please take a look at the FAQ I\'ve prepared for you. You can click on them to get the answer.' ,
13
+ `Lets search for ${ query } ... What do you want to know?` ,
14
+ see_faq : 'Please take a look at the FAQ I\'ve prepared for you. You can click on them to get the answer.' ,
16
15
will_answer_projector :
17
16
'I\'ll answer on the projector to a better experience...' ,
18
17
ask_first_time : 'What are you looking for?'
You can’t perform that action at this time.
0 commit comments