mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Can sign out from all connected devices
This commit is contained in:
@ -290,4 +290,17 @@ function getGroups(list, force){
|
||||
*/
|
||||
function timeDiffToStr(time) {
|
||||
return ComunicWeb.common.date.timeDiffToStr(time);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ask a confirmation to the user
|
||||
*
|
||||
* @param {String} msg Associated message
|
||||
*/
|
||||
async function showConfirmDialog(msg) {
|
||||
return new Promise((res, err) => {
|
||||
ComunicWeb.common.messages.confirm(msg, (c) => {
|
||||
res(c == true);
|
||||
});
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user