mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:27:01 +00:00
hide unlink if link is read only
This commit is contained in:
@@ -218,6 +218,8 @@ class RelationshipPanelView extends BottomPanelView {
|
||||
this.defs.view = false;
|
||||
}
|
||||
|
||||
const unlinkDisabled = this.defs.unlinkDisabled || this.model.getLinkParam(this.link, 'readOnly');
|
||||
|
||||
let hasCreate = false;
|
||||
|
||||
if (this.defs.create) {
|
||||
@@ -375,7 +377,7 @@ class RelationshipPanelView extends BottomPanelView {
|
||||
selector: '.list-container',
|
||||
skipBuildRows: true,
|
||||
rowActionsOptions: {
|
||||
unlinkDisabled: this.defs.unlinkDisabled,
|
||||
unlinkDisabled: unlinkDisabled,
|
||||
editDisabled: this.defs.editDisabled,
|
||||
removeDisabled: this.defs.removeDisabled,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user