<div
  class="topbar-container"
  ng-include="'views/includes/topbar.html'"
  ng-init="titleSection='Transaction History'; goBackToState = 'preferencesAdvanced'">
</div>
<div class="content preferences" ng-controller="preferencesHistory">
  <h4></h4>

  <ul class="no-bullet m0">
    <li ng-if="csvReady && !index.isCordova" ng-init="index.updatingTxHistory ? null : csvHistory()"
      ng-csv="csvContent" csv-header="csvHeader" filename="Copay-{{index.alias || index.walletName}}.csv">
      <span ng-style="{'color':index.backgroundColor}" translate>
        Export to file
      </span>
    </li>
    <li ng-if="!csvReady && !index.isCordova">
      <span translate>Export to file [preparing...]</span>
    </li>
    <li ng-click="clearTransactionHistory()" ng-style="{'color':index.backgroundColor}" translate>
      Clear cache
    </li>
  </ul>
</div>

<div
  class="topbar-container"
  ng-include="'views/includes/topbar.html'"
  ng-init="titleSection='Transaction History'; goBackToState = 'preferencesAdvanced'">
</div>
<div class="content preferences" ng-controller="preferencesHistory">
  <h4></h4>

  <ul class="no-bullet m0">
    <li ng-if="csvReady && !index.isCordova" ng-init="index.updatingTxHistory ? null : csvHistory()"
      ng-csv="csvContent" csv-header="csvHeader" filename="Copay-{{index.alias || index.walletName}}.csv">
      <span ng-style="{'color':index.backgroundColor}" translate>
        Export to file
      </span>
    </li>
    <li ng-if="!csvReady && !index.isCordova">
      <span class="right text-gray text-italic" translate>preparing...</span>
      <span translate>Export to file</span>
    </li>
    <li ng-click="clearTransactionHistory()" ng-style="{'color':index.backgroundColor}" translate>
      Clear cache
    </li>
  </ul>
</div>

Fix UI to show preparing...
Fix UI to show preparing...
