rename mergeData to backupsData in browse backups wizard
This commit is contained in:
parent
c31b7a351c
commit
c037b07693
3 changed files with 4 additions and 4 deletions
|
@ -15,9 +15,9 @@
|
||||||
ns.BrowseBackups = function (piskelController, args) {
|
ns.BrowseBackups = function (piskelController, args) {
|
||||||
this.piskelController = piskelController;
|
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.
|
// results.
|
||||||
this.mergeData = {
|
this.backupsData = {
|
||||||
sessions: [],
|
sessions: [],
|
||||||
selectedSession : null
|
selectedSession : null
|
||||||
};
|
};
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
|
|
||||||
var action = evt.target.dataset.action;
|
var action = evt.target.dataset.action;
|
||||||
if (action == 'view') {
|
if (action == 'view') {
|
||||||
this.backupsController.mergeData.selectedSession = sessionId;
|
this.backupsController.backupsData.selectedSession = sessionId;
|
||||||
this.backupsController.next();
|
this.backupsController.next();
|
||||||
} else if (action == 'delete') {
|
} else if (action == 'delete') {
|
||||||
if (window.confirm('Are you sure you want to delete this session?')) {
|
if (window.confirm('Are you sure you want to delete this session?')) {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.SessionDetails.prototype.onShow = function () {
|
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) {
|
pskl.app.backupService.getSnapshotsBySessionId(sessionId).then(function (snapshots) {
|
||||||
var html = '';
|
var html = '';
|
||||||
if (snapshots.length === 0) {
|
if (snapshots.length === 0) {
|
||||||
|
|
Loading…
Reference in a new issue