Browse Source

Fix reactions;

master
neroignis 5 years ago
parent
commit
13bef7ab32
  1. 5
      app.js
  2. 21
      index.html

5
app.js

@ -59,6 +59,7 @@ let kara = new Vue({ @@ -59,6 +59,7 @@ let kara = new Vue({
},
mounted() {
this.getSavedData();
if (this.features.themes) {
this.getBootswatchThemes();
}
@ -291,6 +292,8 @@ let kara = new Vue({ @@ -291,6 +292,8 @@ let kara = new Vue({
return false;
}
this.lastMessageData = {};
if (this.includesAllOf(phrases, ['change', 'my', 'name'])) {
this.askedForName = true;
return "Please tell me how i should call you.";
@ -414,7 +417,7 @@ let kara = new Vue({ @@ -414,7 +417,7 @@ let kara = new Vue({
this.messages = savedMessages ? savedMessages : [];
let savedAnswers = JSON.parse(localStorage.getItem('answers'));
this.answers = savedAnswers ? savedAnswers : [];
this.answers = savedAnswers !== [] ? savedAnswers : this.answers;
let savedNotes = JSON.parse(localStorage.getItem('notes'));
this.notes = savedNotes ? savedNotes : [];

21
index.html

@ -44,26 +44,25 @@ @@ -44,26 +44,25 @@
</template>
<div class="message bot-message typing float-left" v-if="isTyping">
<div class="spinner-grow text-secondary" role="status">
<span class="sr-only">
Loading...
</span>
<span class="sr-only">
Loading...
</span>
</div>
<div class="spinner-grow text-secondary" role="status">
<span class="sr-only">
Loading...
</span>
<span class="sr-only">
Loading...
</span>
</div>
<div class="spinner-grow text-secondary" role="status">
<span class="sr-only">
Loading...
</span>
<span class="sr-only">
Loading...
</span>
</div>
</div>
</div>
<div id="chatbox-wrapper" class="bg-dark">
<input
class="form-control"
<input class="form-control"
id="chatinput"
type="text"
v-model="chatbox"

Loading…
Cancel
Save