diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4b38089
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.vscode/*
+*.db
+*.ts
+force-app/main/default/lwc/.eslintrc.json
+force-app/main/default/lwc/jsconfig.json
\ No newline at end of file
diff --git a/.sfdx/sfdx-config.json b/.sfdx/sfdx-config.json
index 46c7289..abd14b7 100755
--- a/.sfdx/sfdx-config.json
+++ b/.sfdx/sfdx-config.json
@@ -1,4 +1,4 @@
{
"defaultdevhubusername": "my-hub-org",
- "defaultusername": "ADK"
+ "defaultusername": "gantt-chart2"
}
\ No newline at end of file
diff --git a/config/project-scratch-def.json b/config/project-scratch-def.json
index a2f39fb..fa510e9 100755
--- a/config/project-scratch-def.json
+++ b/config/project-scratch-def.json
@@ -1,7 +1,9 @@
{
"orgName": "spencerhsieh Company",
"edition": "Developer",
- "orgPreferences" : {
- "enabled": ["S1DesktopEnabled"]
+ "settings": {
+ "lightningExperienceSettings": {
+ "enableS1DesktopEnabled": true
+ }
}
}
diff --git a/force-app/main/default/lwc/gantt_chart/gantt_chart.html b/force-app/main/default/lwc/gantt_chart/gantt_chart.html
index be8f16b..817adac 100755
--- a/force-app/main/default/lwc/gantt_chart/gantt_chart.html
+++ b/force-app/main/default/lwc/gantt_chart/gantt_chart.html
@@ -91,7 +91,7 @@
@@ -106,7 +106,7 @@
-
+
{day.dayName}
{day.label}
diff --git a/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.html b/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.html
index 258a3be..9ce289b 100755
--- a/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.html
+++ b/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.html
@@ -23,7 +23,7 @@
-
diff --git a/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.js b/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.js
index 184c8a1..47173d0 100755
--- a/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.js
+++ b/force-app/main/default/lwc/gantt_chart_resource/gantt_chart_resource.js
@@ -235,7 +235,7 @@ export default class GanttChartResource extends LightningElement {
id: projectId,
allocations: []
};
-
+ /*
self.resource.allocationsByProject[projectId].forEach(allocation => {
allocation.class = self.calcClass(allocation);
allocation.style = self.calcStyle(allocation);
@@ -243,6 +243,17 @@ export default class GanttChartResource extends LightningElement {
project.allocations.push(allocation);
});
+ */
+ //fix for Uncaught (in promise) TypeError: 'set' on proxy: trap returned falsish for property 'class'
+ self.resource.allocationsByProject[projectId].forEach(allocation2 => {
+
+ let allocation = JSON.parse(JSON.stringify(allocation2))
+ allocation.class = self.calcClass(allocation);
+ allocation.style = self.calcStyle(allocation);
+ allocation.labelStyle = self.calcLabelStyle(allocation);
+
+ project.allocations.push(allocation);
+ });
self.projects.push(project);
});