feat: verify active opportunity management and prepare versioned resources

This commit is contained in:
2026-10-09 13:16:41 +02:00
parent 60784a2ed2
commit 9d6176f55b
16 changed files with 419 additions and 43 deletions
@@ -24,6 +24,7 @@ export default function OpportunityDraft({
categories,
history,
territoryPath,
resourcesInstalled = false,
}: {
record: Entry | null;
values: Values;
@@ -34,6 +35,7 @@ export default function OpportunityDraft({
sectors: { id: number; name: string }[];
categories: string[];
territoryPath: TerritoryOption[];
resourcesInstalled?: boolean;
history: {
id: string;
action: string;
@@ -466,8 +468,16 @@ export default function OpportunityDraft({
)}
</form>
{record && (
<Link href={`/management/opportunities/${record.id}/resources`}>
Imagens, documentos e localizações
<Link
href={
resourcesInstalled
? `/management/opportunities/${record.id}/resources`
: "/management/opportunity-resources-install"
}
>
{resourcesInstalled
? "Imagens, documentos e localizações"
: "Plano de ativação de imagens, documentos e localizações"}
</Link>
)}
{record && (