Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
<eg-grid-toolbar-button
label="New Circ Matrix Matchpoint" i18n-label (onClick)="createNew()">
</eg-grid-toolbar-button>
- <eg-grid-toolbar-action label="Edit Selected" i18n-label (onClick)="editSelected($event)">
+ <eg-grid-toolbar-action
+ label="Edit Selected" i18n-label
+ (onClick)="editSelected($event)"
+ [disableOnRows]="notOneSelectedRow">
</eg-grid-toolbar-action>
</eg-grid>
marginTop: '25px',
marginLeft: '73%'
};
+ notOneSelectedRow: (rows: IdlObject[]) => boolean;
@ViewChild('limitSets', { static: false }) limitSets: ElementRef;
@ViewChild('circLimitSets', { static: true }) limitSetsComponent: LinkedCircLimitSetsComponent;
};
return this.pcrud.retrieveAll('ccmm', searchOps, {fleshSelectors: true});
};
+ this.notOneSelectedRow = (rows: IdlObject[]) => (rows.length !== 1);
}
clearLinkedCircLimitSets() {