View | Details | Raw Unified | Return to bug 41772
Collapse All | Expand All

(-)a/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm/DomainPage.js (-3 / +6 lines)
 Lines 404-415    Link Here 
404
			}));
404
			}));
405
		},
405
		},
406
406
407
		load: function(id) {
407
		load: function(id, doNotSetTitle) {
408
			this._standbyWidget.opacity = 1;
408
			this._standbyWidget.opacity = 1;
409
			this.standby(true);
409
			this.standby(true);
410
			this._standbyWidget.opacity = 0.75;
410
			this._standbyWidget.opacity = 0.75;
411
411
412
			tools.umcpCommand('uvmm/domain/get', {
412
			return tools.umcpCommand('uvmm/domain/get', {
413
				domainURI: id
413
				domainURI: id
414
			}).then(lang.hitch(this, function(data) {
414
			}).then(lang.hitch(this, function(data) {
415
				// get data blob
415
				// get data blob
 Lines 420-426    Link Here 
420
				if (data) {
420
				if (data) {
421
					this._domain.domainURI = id;
421
					this._domain.domainURI = id;
422
422
423
					this.moduleWidget.set('titleDetail', this._domain.name);
423
					
424
					if (!doNotSetTitle) {
425
						this.moduleWidget.set('titleDetail', this._domain.name);
426
					}
424
427
425
					// clear form data
428
					// clear form data
426
					this._generalForm.clearFormValues();
429
					this._generalForm.clearFormValues();
(-)a/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm.js (+14 lines)
 Lines 1453-1458    Link Here 
1453
					topic.publish('/umc/modules/open', this.moduleID, this.moduleFlavor, props);
1453
					topic.publish('/umc/modules/open', this.moduleID, this.moduleFlavor, props);
1454
				})
1454
				})
1455
			}, {
1455
			}, {
1456
				name: 'snapshot',
1457
				label: _('Snapshot'),
1458
				isMultiAction: false,
1459
				isStandardAction: false,
1460
				isContextAction: true,
1461
				callback: lang.hitch(this, function(ids) {
1462
					if (!ids.length) {
1463
						return;
1464
					}
1465
					this._domainPage.load(ids[0], true).then(lang.hitch(this, function() {
1466
						this._domainPage._snapshotGrid._addSnapshot();
1467
					}));
1468
				})
1469
			}, {
1456
				name: 'start',
1470
				name: 'start',
1457
				label: _( 'Start' ),
1471
				label: _( 'Start' ),
1458
				iconClass: 'umcIconPlay',
1472
				iconClass: 'umcIconPlay',

Return to bug 41772