issue #23965: change incident chart from open to assigned
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 20 Jun 2014 00:35:27 +0000 (20:35 -0400)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 20 Jun 2014 00:35:27 +0000 (20:35 -0400)
enyo-client/extensions/source/crm/client/en/strings.js
enyo-client/extensions/source/crm/client/views/dashboard.js
enyo-client/extensions/source/crm/client/widgets/chart.js

index 7bc446f..0439165 100644 (file)
@@ -7,12 +7,12 @@ strict:true, trailing:true, white:true */
   "use strict";
 
   var lang = XT.stringsFor("en_US", {
+    "_assignedIncidents": "Assigned Incidents",
     "_crm": "CRM",
     "_crmDescription": "Corporate Relationship Management",
     "_highPriority": "High Priority",
     "_incidentDefaultPublic": "Comment Default Public",
     "_incidentStatusColors": "Incident Status Colors",
-    "_openIncidents": "Open Incidents",
     "_maintainEmailProfiles": "Maintain Email Profiles",
     "_staleAnalysisWarning": "Free trial demo analysis data will not be updated from your live changes.",
     "_viewEmailProfiles": "View Email Profiles"
index 44e207b..7c89865 100644 (file)
@@ -14,7 +14,7 @@ trailing:true, white:true*/
     // title is what show in the "add chart" picker on the
     // dashboard and the chart is the widget to be added
     newActions: [
-      {name: "openIncidents", label: "_openIncidents".loc(), item: "XV.OpenIncidentBarChart"},
+      {name: "assignedIncidents", label: "_assignedIncidents".loc(), item: "XV.AssignedIncidentBarChart"},
       {name: "opportunities", label: "_opportunities".loc(), item: "XV.OpportunityBarChart"}
     ]
   });
index 320191b..6e8338c 100644 (file)
@@ -8,10 +8,10 @@ trailing:true, white:true*/
   XT.extensions.crm.initCharts = function () {
 
     enyo.kind({
-      name: "XV.OpenIncidentBarChart",
+      name: "XV.AssignedIncidentBarChart",
       kind: "XV.DrilldownBarChart",
       collection: "XM.IncidentListItemCollection",
-      chartTitle: "_openIncidents".loc(),
+      chartTitle: "_assignedIncidents".loc(),
       filterOptions: [
         { name: "all", parameters: [] },
         { name: "highPriority", parameters: [
@@ -24,12 +24,12 @@ trailing:true, white:true*/
         { name: "priority" },
         { name: "project" }
       ],
-      // suppress closed incidents
+      // assigned incidents only
       query: {
         parameters: [{
           attribute: "status",
-          operator: "!=",
-          value: "L"
+          operator: "=",
+          value: "A"
         }],
       }
     });