mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Api: Add missed et2-select-access widget
This commit is contained in:
parent
2bbac91254
commit
222c56f5af
14
api/js/etemplate/Et2Select/Select/Et2SelectAccess.ts
Normal file
14
api/js/etemplate/Et2Select/Select/Et2SelectAccess.ts
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import {Et2Select} from "../Et2Select";
|
||||||
|
import {Et2StaticSelectMixin, StaticOptions} from "../StaticOptions";
|
||||||
|
|
||||||
|
export class Et2SelectAccess extends Et2StaticSelectMixin(Et2Select)
|
||||||
|
{
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
|
||||||
|
this._static_options = StaticOptions.access(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("et2-select-access", Et2SelectAccess);
|
@ -2,6 +2,7 @@
|
|||||||
* Import all our sub-types
|
* Import all our sub-types
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import './Select/Et2SelectAccess';
|
||||||
import './Select/Et2SelectAccount';
|
import './Select/Et2SelectAccount';
|
||||||
import './Select/Et2SelectApp';
|
import './Select/Et2SelectApp';
|
||||||
import './Select/Et2SelectBitwise';
|
import './Select/Et2SelectBitwise';
|
||||||
|
@ -379,6 +379,15 @@ export const StaticOptions = new class StaticOptionsType
|
|||||||
return this.cached_server_side(widget, 'select-app', options, true);
|
return this.cached_server_side(widget, 'select-app', options, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
access(widget : Et2SelectWidgets) : SelectOption[]
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
{value: "private", label: "Private"},
|
||||||
|
{value: "public", label: "Global public"},
|
||||||
|
{value: "group", label: "Group public"}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
cat(widget : Et2SelectWidgets) : Promise<SelectOption[]>
|
cat(widget : Et2SelectWidgets) : Promise<SelectOption[]>
|
||||||
{
|
{
|
||||||
var options = [widget.globalCategories, /*?*/, widget.application, widget.parentCat];
|
var options = [widget.globalCategories, /*?*/, widget.application, widget.parentCat];
|
||||||
|
Loading…
Reference in New Issue
Block a user