+
Call Hash: {{ audioCall.hash }}
+
Initiator Identity: {{ audioCall.initiator_identity_hash || "Unknown" }}
Direction: Outbound
Direction: Inbound
@@ -335,6 +372,12 @@
},
async hangupCall(callHash) {
+
+ // confirm user wants to hang up call
+ if(!confirm("Are you sure you want to hang up this call?")){
+ return;
+ }
+
try {
// hangup call
@@ -346,6 +389,7 @@
} catch(e) {
alert("failed to hangup call");
}
+
},
leaveCall: function() {
@@ -499,6 +543,18 @@
}
},
},
+ computed: {
+ activeAudioCalls: function() {
+ return this.audioCalls.filter((audioCall) => {
+ return audioCall.is_active;
+ });
+ },
+ inactiveAudioCalls: function() {
+ return this.audioCalls.filter((audioCall) => {
+ return !audioCall.is_active;
+ });
+ },
+ },
}).mount('#app');