Skip to content

Commit

Permalink
fix(core.gbapp): Removing POC code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 24, 2019
1 parent f1b8eb2 commit 56f46f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 0 additions & 2 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,6 @@ export class GBMinService {
min.sandBoxMap[mainMethod].step = step;
min.sandBoxMap[mainMethod][mainMethod].bind(min.sandBoxMap[mainMethod]);
await min.sandBoxMap[mainMethod][mainMethod]();
} else if (context.activity.text === 'Aprovar') {
await step.beginDialog('/oppt');
} else if (context.activity.text === 'admin') {
await step.beginDialog('/admin');

Expand Down
22 changes: 1 addition & 21 deletions packages/kb.gbapp/dialogs/AskDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class AskDialog extends IGBDialog {
min.dialogs.add(new WaterfallDialog('/answerEvent', AskDialog.getAnswerEventDialog(service, min)));
min.dialogs.add(new WaterfallDialog('/answer', AskDialog.getAnswerDialog(min, service)));
min.dialogs.add(new WaterfallDialog('/ask', AskDialog.getAskDialog(min)));
min.dialogs.add(new WaterfallDialog('/oppt', AskDialog.getOPPT(min)));



}
Expand Down Expand Up @@ -197,23 +197,3 @@ export class AskDialog extends IGBDialog {
}
];
}


private static getOPPT(min: GBMinInstance) {
return [
async step => {
await step.context.sendActivity(`Os lançamentos pendentes de aprovação são:" ** \n` +
`01: 12/04 Compra de Impressora - R$ 490,05 \n` +
`02: 15/04 Almoço - R$ 49,00 \n` +
`03: 19/04 Transporte aéreo - R$ 793,10 \n` +
`04: 22/04 Despesa de hospedagem - R$ 690,40 \n` +
`05: 02/05 Despesa de correios AR - R$ 395,00 \n`);
return await step.prompt('textPrompt', '** Informe qual deseja aprovar ou T para aprovar todos" ** ');
}
, async step => {
await step.context.sendActivity('Pronto! Lançamento aprovado. Até a próxima!')
return await step.next();
}
];
}
}

0 comments on commit 56f46f4

Please sign in to comment.