fix(call): update call history management to reflect no more available history
This commit is contained in:
@@ -2116,7 +2116,7 @@ export default {
|
|||||||
callHistorySearch: "",
|
callHistorySearch: "",
|
||||||
callHistoryLimit: 10,
|
callHistoryLimit: 10,
|
||||||
callHistoryOffset: 0,
|
callHistoryOffset: 0,
|
||||||
hasMoreCallHistory: true,
|
hasMoreCallHistory: false,
|
||||||
isCallEnded: false,
|
isCallEnded: false,
|
||||||
wasDeclined: false,
|
wasDeclined: false,
|
||||||
wasVoicemail: false,
|
wasVoicemail: false,
|
||||||
@@ -2643,7 +2643,6 @@ export default {
|
|||||||
try {
|
try {
|
||||||
if (!loadMore) {
|
if (!loadMore) {
|
||||||
this.callHistoryOffset = 0;
|
this.callHistoryOffset = 0;
|
||||||
this.hasMoreCallHistory = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await window.axios.get(
|
const response = await window.axios.get(
|
||||||
|
|||||||
@@ -375,7 +375,10 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="['RNodeInterface', 'RNodeIPInterface'].includes(newInterfaceType)" class="mb-2 flex flex-wrap items-start gap-4">
|
<div
|
||||||
|
v-if="['RNodeInterface', 'RNodeIPInterface'].includes(newInterfaceType)"
|
||||||
|
class="mb-2 flex flex-wrap items-start gap-4"
|
||||||
|
>
|
||||||
<!-- interface spreading factor -->
|
<!-- interface spreading factor -->
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<FormLabel class="mb-1">Spreading Factor</FormLabel>
|
<FormLabel class="mb-1">Spreading Factor</FormLabel>
|
||||||
@@ -1503,9 +1506,9 @@ export default {
|
|||||||
airtime_limit_long: this.newInterfaceAirtimeLimitLong,
|
airtime_limit_long: this.newInterfaceAirtimeLimitLong,
|
||||||
airtime_limit_short: this.newInterfaceAirtimeLimitShort,
|
airtime_limit_short: this.newInterfaceAirtimeLimitShort,
|
||||||
|
|
||||||
// settings that can be added to any interface type
|
// settings that can be added to any interface type
|
||||||
mode: this.sharedInterfaceSettings.mode || "full",
|
mode: this.sharedInterfaceSettings.mode || "full",
|
||||||
bitrate: this.sharedInterfaceSettings.bitrate,
|
bitrate: this.sharedInterfaceSettings.bitrate,
|
||||||
network_name: this.sharedInterfaceSettings.network_name,
|
network_name: this.sharedInterfaceSettings.network_name,
|
||||||
passphrase: this.sharedInterfaceSettings.passphrase,
|
passphrase: this.sharedInterfaceSettings.passphrase,
|
||||||
ifac_size: this.sharedInterfaceSettings.ifac_size,
|
ifac_size: this.sharedInterfaceSettings.ifac_size,
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ export default {
|
|||||||
conversationRefreshTimeout: null,
|
conversationRefreshTimeout: null,
|
||||||
|
|
||||||
config: null,
|
config: null,
|
||||||
|
hasLoadedConversations: false,
|
||||||
peers: {},
|
peers: {},
|
||||||
selectedPeer: null,
|
selectedPeer: null,
|
||||||
|
|
||||||
@@ -348,7 +349,9 @@ export default {
|
|||||||
},
|
},
|
||||||
async getConversations(append = false) {
|
async getConversations(append = false) {
|
||||||
try {
|
try {
|
||||||
if (this.conversations.length === 0 && !append) {
|
const shouldShowInitialLoading =
|
||||||
|
!append && !this.hasLoadedConversations && this.conversations.length === 0;
|
||||||
|
if (shouldShowInitialLoading) {
|
||||||
this.isLoadingConversations = true;
|
this.isLoadingConversations = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -368,6 +371,7 @@ export default {
|
|||||||
this.conversations = newConversations;
|
this.conversations = newConversations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.hasLoadedConversations = true;
|
||||||
this.hasMoreConversations = newConversations.length === this.pageSize;
|
this.hasMoreConversations = newConversations.length === this.pageSize;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user