skip backups for current session in browse backups dialog

This commit is contained in:
juliandescottes 2017-08-01 22:47:53 +02:00 committed by Julian Descottes
parent 6b7f04b63e
commit 170a7e4731

View File

@ -44,6 +44,10 @@
var sessionItemTemplate = pskl.utils.Template.get('session-list-item'); var sessionItemTemplate = pskl.utils.Template.get('session-list-item');
var html = ''; var html = '';
sessions.forEach(function (session) { sessions.forEach(function (session) {
if (session.id === pskl.app.sessionId) {
// Do not show backups for the current session.
return;
}
var view = { var view = {
id: session.id, id: session.id,
name: session.name, name: session.name,