Skip to content

Commit

Permalink
NRPT-290: Removed edit, details options from collection record view (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dhlevi authored Aug 11, 2020
1 parent 0ca6fce commit 903eb97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,6 @@ <h2 class="border-0 mb-0">Edit Collection</h2>
</td>
<td class="col-1">
<div class="d-xl-flex">
<button
class="btn px-2"
type="button"
(click)="goToEditRecord(formGroup.get('record').value)"
title="Edit record"
>
<i class="material-icons">create</i>
</button>
<button
mat-icon-button
class="btn px-2"
Expand All @@ -218,13 +210,6 @@ <h2 class="border-0 mb-0">Edit Collection</h2>
<i class="material-icons">more_vert</i>
</button>
<mat-menu #menu="matMenu">
<button
mat-menu-item
(click)="goToRecordDetails(formGroup.get('record').value)"
title="View Record details"
>
View Record Details
</button>
<button
mat-menu-item
(click)="removeRecordFromCollection(idx)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,26 +441,6 @@ export class MinesCollectionsAddEditComponent implements OnInit, OnDestroy {
}
}

/**
* Navigate to record details page.
*
* @param {*} record
* @memberof MinesCollectionsAddEditComponent
*/
goToRecordDetails(record: any) {
// TODO NRPT-197 - manage records within the context of a mine
}

/**
* Navigate to record edit page.
*
* @param {*} record
* @memberof MinesCollectionsAddEditComponent
*/
goToEditRecord(record: any) {
// TODO NRPT-197 - manage records within the context of a mine
}

ngOnDestroy(): void {
// When the component is destroying, if collectionAddEdit state exists, but the user hadn't clicked the
// 'addRecordsToCollection' button, then remove the collection state from the store.
Expand Down

0 comments on commit 903eb97

Please sign in to comment.