mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Add property to window
This commit is contained in:
parent
a36d8b546a
commit
106744c7d8
@ -17,7 +17,7 @@ class CallsController {
|
||||
* @param {Conversation} conv Information about the target conversation
|
||||
*/
|
||||
static Open(conv) {
|
||||
if(OpenCalls.has(conv.ID) && OpenCalls.get(conv.ID).rootEl.isConnected)
|
||||
if(OpenCalls.has(conv.ID) && OpenCalls.get(conv.ID).isOpen)
|
||||
return;
|
||||
|
||||
console.info("Open call for conversation " + conv.ID);
|
||||
|
@ -119,6 +119,15 @@ class CallWindow extends CustomEvents {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this conversation window is open or not
|
||||
*
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isOpen() {
|
||||
return this.rootEl.isConnected
|
||||
}
|
||||
|
||||
/**
|
||||
* Make the call window draggable
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user