Make sorting enable if we are in 4days view and view is not consolidated

This commit is contained in:
Hadi Nategh 2022-05-05 10:34:35 +02:00
parent efcd5bbe51
commit 2442e80cea

View File

@ -965,7 +965,7 @@ export class CalendarApp extends EgwApp
direction: state.view == 'day'? 'horizental' : 'vertical', direction: state.view == 'day'? 'horizental' : 'vertical',
sort: state.owner.length > 1 && ( sort: state.owner.length > 1 && (
state.view == 'day' && state.owner.length < parseInt(''+egw.preference('day_consolidate','calendar')) || state.view == 'day' && state.owner.length < parseInt(''+egw.preference('day_consolidate','calendar')) ||
state.view == 'week' && state.owner.length < parseInt(''+egw.preference('week_consolidate','calendar'))), // enable/disable sort (state.view == 'week' || state.view == 'day4') && state.owner.length < parseInt(''+egw.preference('week_consolidate','calendar'))), // enable/disable sort
onStart: function (event) onStart: function (event)
{ {
// Put owners into row IDs // Put owners into row IDs