@@ -259,38 +259,38 @@
{% endif %}
- | {{ r.notice_service_date }} |
- {{ r.notice_expiration_date }} |
- {{ r.case_field_date }} |
- {% if r.daily_rent_damages %}${{ "{:,.2f}".format(r.daily_rent_damages) }}{% endif %} |
- {{ r.default_date }} |
- {{ r.default_entered_on_date }} |
- |
- {{ r.demurrer_hearing_date }} |
- {{ r.motion_to_strike_hearing_date }} |
- {{ r.motion_to_quash_hearing_date }} |
- {{ r.other_motion_hearing_date }} |
- {{ r.msc_date }} |
- {{ r.msc_time }} |
- {{ r.msc_address }} |
- {{ r.msc_div_dept_room }} |
- {{ r.trial_date }} |
- {{ r.trial_time }} |
- {{ r.trial_address }} |
- {{ r.trial_div_dept_room }} |
- {{ r.final_result }} |
- {{ r.date_of_settlement }} |
- {{ r.final_obligation }} |
- {{ r.def_comply_stip }} |
- {{ r.judgment_date }} |
- {{ r.writ_issued_date }} |
- {{ r.scheduled_lockout }} |
- {{ r.oppose_stays }} |
- {{ r.premises_safety }} |
- {{ r.matter_gate_code }} |
- {{ r.date_possession_recovered }} |
- {{ r.attorney_fees }} |
- {{ r.costs }} |
+ {{ r.notice_service_date }} |
+ {{ r.notice_expiration_date }} |
+ {{ r.case_field_date }} |
+ {% if r.daily_rent_damages %}${{ "{:,.2f}".format(r.daily_rent_damages) }}{% endif %} |
+ {{ r.default_date }} |
+ {{ r.default_entered_on_date }} |
+ |
+ {{ r.demurrer_hearing_date }} |
+ {{ r.motion_to_strike_hearing_date }} |
+ {{ r.motion_to_quash_hearing_date }} |
+ {{ r.other_motion_hearing_date }} |
+ {{ r.msc_date }} |
+ {{ r.msc_time }} |
+ {{ r.msc_address }} |
+ {{ r.msc_div_dept_room }} |
+ {{ r.trial_date }} |
+ {{ r.trial_time }} |
+ {{ r.trial_address }} |
+ {{ r.trial_div_dept_room }} |
+ {{ r.final_result }} |
+ {{ r.date_of_settlement }} |
+ {{ r.final_obligation }} |
+ {{ r.def_comply_stip }} |
+ {{ r.judgment_date }} |
+ {{ r.writ_issued_date }} |
+ {{ r.scheduled_lockout }} |
+ {{ r.oppose_stays }} |
+ {{ r.premises_safety }} |
+ {{ r.matter_gate_code }} |
+ {{ r.date_possession_recovered }} |
+ {{ r.attorney_fees }} |
+ {{ r.costs }} |
{% else %}
@@ -362,35 +362,38 @@ function columnConfig() {
this.loadColumnSettings();
},
+ isColumnVisible(columnName) {
+ return this.visibleColumns.includes(columnName);
+ },
+
loadColumnSettings() {
const stored = localStorage.getItem('dashboardColumnVisibility');
- console.log("STORED", stored)
if (stored) {
this.visibleColumns = JSON.parse(stored);
this.selectAll = this.visibleColumns.length === this.columns.length;
} else {
// Default to showing all columns
- this.visibleColumns = this.columns.map((_, index) => index);
+ this.visibleColumns = [...this.columns];
this.selectAll = true;
}
},
saveColumnSettings() {
- console.log(JSON.stringify(this.visibleColumns))
localStorage.setItem('dashboardColumnVisibility', JSON.stringify(this.visibleColumns));
},
toggleAllColumns() {
if (this.selectAll) {
- this.visibleColumns = this.columns.map((_, index) => index);
- } else {
this.visibleColumns = [];
+ } else {
+ this.visibleColumns = [...this.columns];
}
+ this.selectAll = !this.selectAll;
this.saveColumnSettings();
},
resetToDefault() {
- this.visibleColumns = this.columns.map((_, index) => index);
+ this.visibleColumns = [...this.columns];
this.selectAll = true;
this.saveColumnSettings();
}