feat(portal-frontend): implement case-actions component
Renders record-assessment as a link only in redirect mode (otherwise a form-trigger slot, filled in once record-assessment-form exists), and take-ownership/release-ownership buttons purely off presence of their optional action key. Emits requests upward rather than calling the API itself - the actual take/release-ownership handling lands in a later commit.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Component, input } from '@angular/core';
|
||||
import { Component, input, output } from '@angular/core';
|
||||
|
||||
import { CaseDetailActions } from '../case-detail.types';
|
||||
import { ActionLink, CaseDetailActions } from '../case-detail.types';
|
||||
|
||||
@Component({
|
||||
selector: 'app-case-actions',
|
||||
@@ -10,4 +10,7 @@ import { CaseDetailActions } from '../case-detail.types';
|
||||
})
|
||||
export class CaseActions {
|
||||
readonly actions = input.required<CaseDetailActions>();
|
||||
|
||||
readonly takeOwnershipRequested = output<ActionLink>();
|
||||
readonly releaseOwnershipRequested = output<ActionLink>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user