mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Change static cat select options to always use promise
This commit is contained in:
parent
dc8809ef87
commit
19a45164f9
@ -233,7 +233,7 @@ export class StaticOptions
|
|||||||
return this.cached_server_side(widget, 'select-app', options);
|
return this.cached_server_side(widget, 'select-app', options);
|
||||||
}
|
}
|
||||||
|
|
||||||
cat(widget : Et2SelectWidgets) : SelectOption[]
|
cat(widget : Et2SelectWidgets) : Promise<SelectOption[]>
|
||||||
{
|
{
|
||||||
var options = [widget.global_categories, /*?*/, widget.application, widget.parent_cat];
|
var options = [widget.global_categories, /*?*/, widget.application, widget.parent_cat];
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ export class StaticOptions
|
|||||||
(widget.getInstanceManager() && widget.getInstanceManager().app) ||
|
(widget.getInstanceManager() && widget.getInstanceManager().app) ||
|
||||||
widget.egw().app_name();
|
widget.egw().app_name();
|
||||||
}
|
}
|
||||||
return this.cached_server_side(widget, 'select-cat', options.join(','))
|
return <Promise<SelectOption[]>>this.cached_server_side(widget, 'select-cat', options.join(','), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
country(widget : Et2SelectWidgets, attrs, return_promise) : SelectOption[]|Promise<SelectOption[]>
|
country(widget : Et2SelectWidgets, attrs, return_promise) : SelectOption[]|Promise<SelectOption[]>
|
||||||
|
Loading…
Reference in New Issue
Block a user