Can sign out from all connected devices

This commit is contained in:
2020-05-04 13:21:58 +02:00
parent f3b7091332
commit a7a33bbdb8
6 changed files with 104 additions and 4 deletions

View File

@ -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);
});
})
}