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:
eho
2026-07-31 08:49:29 +02:00
parent 754086226b
commit 97c0bea238
2 changed files with 24 additions and 3 deletions
@@ -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>();
}