Browse Source

[Web] Add icon to indicate relayed domain

andryyy 5 years ago
parent
commit
c96fc8e91d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      data/web/js/site/mailbox.js

+ 3 - 0
data/web/js/site/mailbox.js

@@ -255,6 +255,9 @@ jQuery(function($){
             item.max_quota_for_mbox = humanFileSize(item.max_quota_for_mbox);
             item.chkbox = '<input type="checkbox" data-id="domain" name="multi_select" value="' + encodeURIComponent(item.domain_name) + '" />';
             item.action = '<div class="btn-group">';
+            if (item.backupmx_int == 1) {
+              item.domain_name = '<span class="glyphicon glyphicon-export"></span> ' + item.domain_name;
+            }
             if (role == "admin") {
               item.action += '<a href="/edit/domain/' + encodeURIComponent(item.domain_name) + '" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-pencil"></span> ' + lang.edit + '</a>' +
                 '<a href="#" data-action="delete_selected" data-id="single-domain" data-api-url="delete/domain" data-item="' + encodeURIComponent(item.domain_name) + '" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span> ' + lang.remove + '</a>';