import MetricWidget from '../MetricWidget';
import declare from 'dojo/_base/declare';
import Store from 'argos/Store/PouchDB';

export default declare('crm.Views.Offline.TotalMetricWidget', [MetricWidget], {
  _buildQueryOptions: function _buildQueryOptions() {
    return {};
  },
  _buildQueryExpression: function _buildQueryExpression() {
    return {
      map: function map(doc, emit) {
        emit(1);
      },
      reduce: '_count',
    };
  },
  createStore: function createStore() {
    return new Store({
      databaseName: this.OFFLINE_DB_NAME,
    });
  },
});

@@ -201,16 +201,66 @@
 get%5D, %7B%0A
+  navToReportView: function navToReportView() %7B%7D,%0A
   _build

Disable the report view for the offline total widget.