Fix PGP back/restore dialog

This commit is contained in:
Hadi Nategh 2023-02-01 14:15:56 +01:00
parent dba604ca59
commit e397e43c1b
2 changed files with 9 additions and 6 deletions

View File

@ -1365,8 +1365,6 @@ export const AppJS = (function(){ "use strict"; return Class.extend(
initialSetup:initSetup
};
_keyring.createKeyBackupContainer(selector, options).then(function(_popupId){
var $backup_selector = jQuery('iframe[src^="chrome-extension"],iframe[src^="about:blank?mvelo"]');
$backup_selector.css({position:'absolute', "z-index":1});
_popupId.isReady().then(function(result){
egw.message('Your key has been backedup into .PGP-Key-Backup successfully.');
jQuery(selector).empty();
@ -1489,7 +1487,8 @@ export const AppJS = (function(){ "use strict"; return Class.extend(
},
template: egw.webserverUrl+'/api/templates/default/pgp_backup_restore.xet',
class: "pgp_backup_restore",
modal:true
modal:true,
width: 700
});
};
if (typeof mailvelope != 'undefined')

View File

@ -14,18 +14,22 @@
</row>
<row>
<et2-image src="$row_cont[image]"></et2-image>
<et2-description onclick="$row_cont[onclick]" class="click"></et2-description>
<et2-description value="$row_cont[label]" onclick="$row_cont[onclick]" class="click"></et2-description>
</row>
</rows>
</grid>
<et2-hbox id="mvelo" width="500px" height="300" class="mveloFrame"></et2-hbox>
<et2-hbox id="mvelo" class="mveloFrame"></et2-hbox>
</et2-hbox>
<styles>
#_mvelo.mveloFrame {
border:1px solid silver;
display: inline-block;
float:right;
position:absolute;
width: 550px;
height: 300px;
}
#_mvelo.mveloFrame iframe {
position: relative !important;
}
div#_mvelo:before {
content: "Select an operation from menu";