Calendar: Fix some kanban problems

- CalendarOwner webcomponent lacked et2- prefix
- Make sure CalendarOwner TS code is loaded when component is used
- Fix status filter was in changeable fields
- Fix Priority filter was missing options
This commit is contained in:
nathan 2022-08-25 10:07:39 -06:00
parent fe42b206c5
commit 924bea48e5
3 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
*/
public function beforeSendToClient($cname, array $expand=null)
{
Framework::includeJS('/calendar/js/app.min.js');
Framework::includeCSS('calendar', 'calendar');
$bo = new calendar_bo();
@ -343,4 +343,4 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
}
}
Etemplate\Widget::registerWidget(__NAMESPACE__ . '\\calendar_owner_etemplate_widget', array('calendar-owner'));
Etemplate\Widget::registerWidget(__NAMESPACE__ . '\\calendar_owner_etemplate_widget', array('et2-calendar-owner'));

View File

@ -109,4 +109,4 @@ export class CalendarOwner extends Et2Select
}
}
customElements.define("calendar-owner", CalendarOwner);
customElements.define("et2-calendar-owner", CalendarOwner);

View File

@ -36,7 +36,7 @@ return false;"/>
<select id="status_filter" no_lang="true" class="et2_fullWidth"
onchange="app.calendar.update_state({status_filter: widget.getValue()});"/>
<hrule/>
<calendar-owner id="owner" class="et2_fullWidth"
<et2-calendar-owner id="owner" class="et2_fullWidth"
onchange="app.calendar.update_state({owner: widget.getValue()}); return false;"
multiple="true" allowFreeEntries="false"
autocomplete_params="{&quot;checkgrants&quot;: true}"/>