Skip to content

Commit

Permalink
change status message while fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
hossinasaadi committed Feb 13, 2022
1 parent ad3a15a commit cb7b116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h4>RECENT STATUSES</h4>
v-bind:name="getNameByJid(key)"
></users-list>
</div>
<div v-else >No Statuses, Please connect to WA</div>
<div v-else >{{statusInfo}}</div>

<full-view v-if="is_full_view" :user="getUserDataByJid(selected_user)" :num="selected_user" :media="getFirstMedia()" ></full-view>

Expand Down
3 changes: 2 additions & 1 deletion client/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $(document).ready(function() {
}
function setStatuses(data)
{
app.$root.statusInfo = "Fetching Statuses..."
if(data.message_type == "jsonStatuses"){

users = data.message[2];
Expand Down Expand Up @@ -54,7 +55,7 @@ $(document).ready(function() {
selected_user: selected_user,
page: page,
users : users,

statusInfo: "No Statuses, Please connect to WA"
}
,
methods: {
Expand Down

0 comments on commit cb7b116

Please sign in to comment.