Add support for Mailvelope's encrypt and sign feature

pull/5742/merge
Aleksander Machniak 7 years ago
parent ba77da4b37
commit 7e0844d229

@ -591,6 +591,12 @@
a.vcard:before { a.vcard:before {
content: @fa-var-paperclip; content: @fa-var-paperclip;
} }
a.encrypt:before {
content: @fa-var-lock;
}
a.encrypt.sign:before {
content: @fa-var-lock; // TODO
}
} }
.toolbarmenu.listing li { .toolbarmenu.listing li {

@ -136,9 +136,14 @@
</a> </a>
</span> </span>
<roundcube:endif /> <roundcube:endif />
<roundcube:button command="compose-encrypted" type="link" class="button encrypt disabled" <span class="dropbutton" style="display:none">
classAct="button encrypt" classSel="button encrypt selected" innerclass="inner" <roundcube:button command="compose-encrypted" type="link" class="button encrypt disabled"
label="encrypt" title="encryptmessagemailvelope" tabindex="2" style="display:none" /> classAct="button encrypt" classSel="button encrypt selected" innerclass="inner"
label="encrypt" title="encryptmessagemailvelope" tabindex="2" />
<a href="#encryption" id="encryption-menu-button" class="button dropdown" tabindex="2" data-popup="encryption-menu">
<span class="inner"><roundcube:label name="encryptmessagemailvelope" /></span>
</a>
</span>
<roundcube:container name="toolbar" id="compose-toolbar" /> <roundcube:container name="toolbar" id="compose-toolbar" />
</div> </div>
</div> </div>
@ -269,4 +274,11 @@
</ul> </ul>
</div> </div>
<div id="encryption-menu" class="popupmenu">
<ul class="toolbarmenu listing" role="menu">
<roundcube:button command="compose-encrypted" type="link-menuitem" label="encryptmessage" class="encrypt" classAct="encrypt active" />
<roundcube:button command="compose-encrypted-signed" type="link-menuitem" label="encryptandsign" class="encrypt sign" classAct="encrypt sign active" />
</ul>
</div>
<roundcube:include file="includes/footer.html" /> <roundcube:include file="includes/footer.html" />

@ -1164,10 +1164,15 @@ function rcube_elastic_ui()
case 'compose-encrypted': case 'compose-encrypted':
// show the toolbar button for Mailvelope // show the toolbar button for Mailvelope
if (args.status) { if (args.status) {
$('a.button.encrypt').show(); $('a.button.encrypt').parent().show();
} }
break; break;
case 'compose-encrypted-signed':
// enable selector for encrypt and sign
$('#encryption-menu-button').show();
break;
case 'mark': case 'mark':
// show the toolbar button for Mailvelope // show the toolbar button for Mailvelope
$('a.button.markmessage')[args.status ? 'removeClass' : 'addClass']('disabled'); $('a.button.markmessage')[args.status ? 'removeClass' : 'addClass']('disabled');

Loading…
Cancel
Save