mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Fix error select-account widget is not supported in et2_menulist widget
This commit is contained in:
parent
676be91387
commit
06d6887744
@ -624,7 +624,7 @@ var et2_selectAccount_ro = /** @class */ (function (_super) {
|
||||
* Constructor
|
||||
*/
|
||||
function et2_selectAccount_ro(_parent, _attrs, _child) {
|
||||
var _this = _super.call(this, _parent, _attrs, et2_core_inheritance_1.ClassWithAttributes.extendAttributes(et2_selectAccount_ro._attributes, _child || {})) || this;
|
||||
var _this = this;
|
||||
/**
|
||||
Resolve some circular dependency problems here
|
||||
selectAccount extends link, link is in a file that needs select,
|
||||
@ -632,6 +632,9 @@ var et2_selectAccount_ro = /** @class */ (function (_super) {
|
||||
*/
|
||||
if (_parent.supportedWidgetClasses.indexOf(et2_selectAccount_ro) < 0) {
|
||||
_parent.supportedWidgetClasses.push(et2_selectAccount_ro);
|
||||
}
|
||||
_this = _super.call(this, _parent, _attrs, et2_core_inheritance_1.ClassWithAttributes.extendAttributes(et2_selectAccount_ro._attributes, _child || {})) || this;
|
||||
if (_parent.supportedWidgetClasses.indexOf(et2_selectAccount_ro) > 0) {
|
||||
_parent.addChild(_this);
|
||||
}
|
||||
// Legacy options could have row count or empty label in first slot
|
||||
|
@ -773,8 +773,6 @@ export class et2_selectAccount_ro extends et2_link_string
|
||||
*/
|
||||
constructor(_parent : et2_widget, _attrs? : WidgetConfig, _child? : object)
|
||||
{
|
||||
super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_selectAccount_ro._attributes, _child || {}));
|
||||
|
||||
/**
|
||||
Resolve some circular dependency problems here
|
||||
selectAccount extends link, link is in a file that needs select,
|
||||
@ -783,6 +781,13 @@ export class et2_selectAccount_ro extends et2_link_string
|
||||
if(_parent.supportedWidgetClasses.indexOf(et2_selectAccount_ro) < 0)
|
||||
{
|
||||
_parent.supportedWidgetClasses.push(et2_selectAccount_ro);
|
||||
}
|
||||
|
||||
super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_selectAccount_ro._attributes, _child || {}));
|
||||
|
||||
|
||||
if(_parent.supportedWidgetClasses.indexOf(et2_selectAccount_ro) > 0)
|
||||
{
|
||||
_parent.addChild(this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user