Skip to content

Commit

Permalink
Changed naming from snotify to toast
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed Mar 24, 2020
1 parent 347038b commit 2583e97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1853,8 +1853,8 @@ function storeSetup(vuetify) {
context.commit("SET_TENEO_SESSION_ID", json.sessionId);
json = convertTeneoJsonNewToOld(json);
context.commit("HIDE_CHAT_LOADING");
if (json.responseData.extraData.snotify) {
context.commit("SET_SNOTIFY", JSON.parse(json.responseData.extraData.snotify));
if (json.responseData.extraData.toast) {
context.commit("SET_SNOTIFY", JSON.parse(json.responseData.extraData.toast));
}
if (json.responseData.extraData.emergency) {
context.commit(
Expand Down Expand Up @@ -2005,8 +2005,8 @@ function storeSetup(vuetify) {
if (params.indexOf("command=train") !== -1) {
return;
}
if (json.responseData.extraData.snotify) {
context.commit("SET_SNOTIFY", JSON.parse(json.responseData.extraData.snotify));
if (json.responseData.extraData.toast) {
context.commit("SET_SNOTIFY", JSON.parse(json.responseData.extraData.toast));
}
if ("numActiveFlows" in json.responseData.extraData) {
// deal with polling
Expand Down

0 comments on commit 2583e97

Please sign in to comment.