Univention Bugzilla – Attachment 9048 Details for
Bug 41772
Create snapshot via right click context menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
41772.patch (text/plain), 2.38 KB, created by
Johannes Keiser
on 2017-07-21 13:46:00 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Johannes Keiser
Created:
2017-07-21 13:46:00 CEST
Size:
2.38 KB
patch
obsolete
>Index: umc/js/uvmm/DomainPage.js >=================================================================== >diff --git a/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm/DomainPage.js b/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm/DomainPage.js >--- a/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm/DomainPage.js (Revision 81302) >+++ b/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm/DomainPage.js (Arbeitskopie) >@@ -404,12 +404,12 @@ > })); > }, > >- load: function(id) { >+ load: function(id, doNotSetTitle) { > this._standbyWidget.opacity = 1; > this.standby(true); > this._standbyWidget.opacity = 0.75; > >- tools.umcpCommand('uvmm/domain/get', { >+ return tools.umcpCommand('uvmm/domain/get', { > domainURI: id > }).then(lang.hitch(this, function(data) { > // get data blob >@@ -420,7 +420,10 @@ > if (data) { > this._domain.domainURI = id; > >- this.moduleWidget.set('titleDetail', this._domain.name); >+ >+ if (!doNotSetTitle) { >+ this.moduleWidget.set('titleDetail', this._domain.name); >+ } > > // clear form data > this._generalForm.clearFormValues(); >Index: umc/js/uvmm.js >=================================================================== >diff --git a/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm.js b/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm.js >--- a/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm.js (Revision 81302) >+++ b/branches/ucs-4.2/ucs-4.2-1/virtualization/univention-virtual-machine-manager-daemon/umc/js/uvmm.js (Arbeitskopie) >@@ -1453,6 +1453,20 @@ > topic.publish('/umc/modules/open', this.moduleID, this.moduleFlavor, props); > }) > }, { >+ name: 'snapshot', >+ label: _('Snapshot'), >+ isMultiAction: false, >+ isStandardAction: false, >+ isContextAction: true, >+ callback: lang.hitch(this, function(ids) { >+ if (!ids.length) { >+ return; >+ } >+ this._domainPage.load(ids[0], true).then(lang.hitch(this, function() { >+ this._domainPage._snapshotGrid._addSnapshot(); >+ })); >+ }) >+ }, { > name: 'start', > label: _( 'Start' ), > iconClass: 'umcIconPlay',
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41772
: 9048