|
517 |
iconClass: 'umcIconEdit', |
517 |
iconClass: 'umcIconEdit', |
518 |
isStandardAction: true, |
518 |
isStandardAction: true, |
519 |
isMultiAction: true, |
519 |
isMultiAction: true, |
|
|
520 |
canExecute: lang.hitch(this, '_canEdit'), |
520 |
callback: lang.hitch(this, function(ids, items) { |
521 |
callback: lang.hitch(this, function(ids, items) { |
521 |
if (items.length == 1 && items[0].objectType) { |
522 |
if (items.length == 1 && items[0].objectType) { |
522 |
this.createDetailPage(items[0].objectType, ids[0]); |
523 |
this.createDetailPage(items[0].objectType, ids[0]); |
|
541 |
label: _('Edit in new tab'), |
542 |
label: _('Edit in new tab'), |
542 |
description: _( 'Open a new tab in order to edit the UDM-object' ), |
543 |
description: _( 'Open a new tab in order to edit the UDM-object' ), |
543 |
isMultiAction: false, |
544 |
isMultiAction: false, |
|
|
545 |
canExecute: lang.hitch(this, '_canEdit'), |
544 |
callback: lang.hitch(this, function(ids, items) { |
546 |
callback: lang.hitch(this, function(ids, items) { |
545 |
var moduleProps = { |
547 |
var moduleProps = { |
546 |
openObject: { |
548 |
openObject: { |
|
961 |
domClass.add(this._grid._grid.domNode, 'umcDynamicHeight-55'); |
963 |
domClass.add(this._grid._grid.domNode, 'umcDynamicHeight-55'); |
962 |
}, |
964 |
}, |
963 |
|
965 |
|
|
|
966 |
_canEdit: function(item) { |
967 |
return item.$operations$.indexOf('edit') !== -1; |
968 |
}, |
969 |
|
964 |
_canMove: function(item) { |
970 |
_canMove: function(item) { |
965 |
if (tools.isTrue(this._ucr['ad/member'])) { |
971 |
if (tools.isTrue(this._ucr['ad/member'])) { |
966 |
return -1 === array.indexOf(item.$flags$, 'synced'); |
972 |
return -1 === array.indexOf(item.$flags$, 'synced'); |
967 |
} |
973 |
} |
968 |
return true; |
974 |
return item.$operations$.indexOf('move') !== -1; |
969 |
}, |
975 |
}, |
970 |
|
976 |
|
971 |
_canDelete: function(item) { |
977 |
_canDelete: function(item) { |
972 |
if (tools.isTrue(this._ucr['ad/member'])) { |
978 |
if (tools.isTrue(this._ucr['ad/member'])) { |
973 |
return -1 === array.indexOf(item.$flags$, 'synced'); |
979 |
return -1 === array.indexOf(item.$flags$, 'synced'); |
974 |
} |
980 |
} |
975 |
return true; |
981 |
return item.$operations$.indexOf('remove') !== -1; |
976 |
}, |
982 |
}, |
977 |
|
983 |
|
978 |
_reloadSuperordinates: function() { |
984 |
_reloadSuperordinates: function() { |