feat: verify active opportunity management and prepare versioned resources
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user