change utterances to correct form;change intents to mimic dialog;

This commit is contained in:
Bilal
2018-01-11 14:05:44 +00:00
parent 7d79c03d15
commit 4c8c1c5e0e
5 changed files with 56 additions and 33 deletions

View File

@@ -17,7 +17,7 @@ class App extends Component {
constructor(props){
super(props);
this.state={_id:'5a232fb86ce046c749739455',
this.state={_id:'5a5016e775becaef2015da10',
skillID:'',
skillName:'',
invocationName:'Saburly',
@@ -181,6 +181,7 @@ class App extends Component {
updateSkill(this.createSkill(newAllIntents,newName,newAnswer,email,updateOnAmazon)).then(l=>l.text()).then(result=>{
let jResult = JSON.parse(result);
if (jResult.result !== 0){
console.log(jResult.result);
if (showPopUp) Popup.alert('Model was not saved. Please try again');
this.setState(rejectState);
//reject('Error code : ' + jResult.result);
@@ -190,6 +191,7 @@ class App extends Component {
resolve();
}
}).catch(e=>{
console.log('error : ' + e);
if (showPopUp) Popup.alert('Model was not saved. Please try again');
this.setState(rejectState);
//reject(e);

View File

@@ -1,4 +1,4 @@
export const BASE_URL = 'localhost:5000';
export const BASE_URL = 'tellall.saburly.com';
export const INTENT_NAME_MAX_LENGTH = 30;
export const QUESTION_MAX_LENGTH = 150;
@@ -14,4 +14,4 @@ export const EMAIL_MAX_LENGTH = 100;
export const NEW_INTENT_SELECTED_INDEX = -1;
export const LAUNCH_REQUEST_SELECTED_INDEX = -2;
export const CONTACT_SELECTED_INDEX = -3;
export const CONTACT_SELECTED_INDEX = -3;