rename mergeData to backupsData in browse backups wizard

This commit is contained in:
juliandescottes 2017-08-02 00:14:51 +02:00 committed by Julian Descottes
parent c31b7a351c
commit c037b07693
3 changed files with 4 additions and 4 deletions

View File

@ -15,9 +15,9 @@
ns.BrowseBackups = function (piskelController, args) {
this.piskelController = piskelController;
// Merge data object used by steps to communicate and share their
// Backups data object used by steps to communicate and share their
// results.
this.mergeData = {
this.backupsData = {
sessions: [],
selectedSession : null
};

View File

@ -74,7 +74,7 @@
var action = evt.target.dataset.action;
if (action == 'view') {
this.backupsController.mergeData.selectedSession = sessionId;
this.backupsController.backupsData.selectedSession = sessionId;
this.backupsController.next();
} else if (action == 'delete') {
if (window.confirm('Are you sure you want to delete this session?')) {

View File

@ -22,7 +22,7 @@
};
ns.SessionDetails.prototype.onShow = function () {
var sessionId = this.backupsController.mergeData.selectedSession;
var sessionId = this.backupsController.backupsData.selectedSession;
pskl.app.backupService.getSnapshotsBySessionId(sessionId).then(function (snapshots) {
var html = '';
if (snapshots.length === 0) {