change utterances to correct form;change intents to mimic dialog;
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user