Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRPT-290: Removed edit, details options from collection record view #536

Merged
merged 2 commits into from
Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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