feat: consolidar desenvolvimentos do portal InvestMoz
This commit is contained in:
@@ -33,6 +33,7 @@ export type Guidance = {
|
||||
rules_version: string;
|
||||
computed_at: string;
|
||||
can_write: boolean;
|
||||
can_update_tasks?: boolean;
|
||||
facts: Record<string, string>;
|
||||
financial_draft: Record<string, unknown> | null;
|
||||
consulted: {
|
||||
@@ -725,21 +726,25 @@ export function InvestorGuidance({
|
||||
Consultar o pedido e a resposta do responsável
|
||||
</Link>
|
||||
)}
|
||||
{(manager || actorId === task.assignee_user_id) && (
|
||||
<>
|
||||
<label className="block">
|
||||
Resultado ou motivo
|
||||
<textarea
|
||||
className={input}
|
||||
value={reason}
|
||||
onChange={(e) =>
|
||||
setReason(e.target.value)
|
||||
}
|
||||
/>
|
||||
</label>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{['in_progress', 'done', 'cancelled'].map(
|
||||
(status) => (
|
||||
{guidance.can_update_tasks !== false &&
|
||||
(manager || actorId === task.assignee_user_id) && (
|
||||
<>
|
||||
<label className="block">
|
||||
Resultado ou motivo
|
||||
<textarea
|
||||
className={input}
|
||||
value={reason}
|
||||
onChange={(e) =>
|
||||
setReason(e.target.value)
|
||||
}
|
||||
/>
|
||||
</label>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{[
|
||||
'in_progress',
|
||||
'done',
|
||||
'cancelled',
|
||||
].map((status) => (
|
||||
<button
|
||||
key={status}
|
||||
type="button"
|
||||
@@ -763,11 +768,10 @@ export function InvestorGuidance({
|
||||
? 'Registar conclusão'
|
||||
: 'Cancelar tarefa'}
|
||||
</button>
|
||||
),
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</article>
|
||||
))}
|
||||
{!guidance.tasks.length && (
|
||||
|
||||
Reference in New Issue
Block a user