Skip to content

Commit

Permalink
Whitelist images dropdown #201
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Feb 7, 2023
1 parent 05d8e7b commit 831410e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions snappymail/v/0.0.0/app/templates/Views/User/MailMessageView.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,15 @@

<div class="showImages" data-bind="visible: message().hasImages()">
<div class="btn" data-bind="click: showImages" data-icon="🖼" data-i18n="MESSAGE/BUTTON_SHOW_IMAGES"></div>
<div data-bind="foreach: message().whitelistOptions()">
<div class="btn" data-bind="click: $root.whitelistText, text: $data" data-icon="🖼"></div>
<div class="btn-group" data-bind="registerBootstrapDropdown: true" style="display: inline-block">
<a class="btn dropdown-toggle" id="whitelist-dropdown-id" data-icon="🖼" href="#" tabindex="-1"><span data-i18n="SETTINGS_GENERAL/IMAGES_WHITELIST"></span></a>
<menu class="dropdown-menu right-edge" role="menu" aria-labelledby="whitelist-dropdown-id">
<!-- ko foreach: message().whitelistOptions() -->
<li role="presentation">
<a href="#" tabindex="-1" data-bind="click: $root.whitelistText, text: $data"></a>
</li>
<!-- /ko -->
</menu>
</div>
</div>
</div>
Expand Down

0 comments on commit 831410e

Please sign in to comment.