@@ -1,5 +1,5 @@
|
||||
import { useForm } from '@inertiajs/react';
|
||||
import { Management, button } from './shared';
|
||||
import { useForm } from "@inertiajs/react";
|
||||
import { Management, button } from "./shared";
|
||||
export default function Install({
|
||||
installed,
|
||||
ready,
|
||||
@@ -9,6 +9,7 @@ export default function Install({
|
||||
migration,
|
||||
backupDate,
|
||||
rollback,
|
||||
actionUrl = "/management/opportunity-management-install",
|
||||
}: {
|
||||
installed: boolean;
|
||||
ready: boolean;
|
||||
@@ -18,13 +19,14 @@ export default function Install({
|
||||
migration: string;
|
||||
backupDate: string | null;
|
||||
rollback: string;
|
||||
actionUrl?: string;
|
||||
}) {
|
||||
const form = useForm({ hash, confirm: false });
|
||||
return (
|
||||
<Management title="Ativação da Gestão de Oportunidades">
|
||||
<p>
|
||||
Base: {target.database}:{target.port} ·{' '}
|
||||
{installed ? 'Instalado' : 'Ainda não aplicado'}
|
||||
Base: {target.database}:{target.port} ·{" "}
|
||||
{installed ? "Instalado" : "Ainda não aplicado"}
|
||||
</p>
|
||||
<ul>
|
||||
{changes.map((c) => (
|
||||
@@ -32,17 +34,16 @@ export default function Install({
|
||||
))}
|
||||
</ul>
|
||||
<p>Migração: {migration}</p>
|
||||
<p>Backup/restauro: {backupDate ?? 'Prova ainda por preparar'}</p>
|
||||
<p>Backup/restauro: {backupDate ?? "Prova ainda por preparar"}</p>
|
||||
<p>{rollback}</p>
|
||||
<p>
|
||||
Este plano ativa apenas o primeiro incremento; workflow
|
||||
completo, imagens e módulos especializados permanecem no
|
||||
backlog.
|
||||
Este plano ativa apenas as alterações acima; workflow completo e
|
||||
lacunas restantes permanecem no backlog.
|
||||
</p>
|
||||
<form
|
||||
onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
form.post('/management/opportunity-management-install');
|
||||
form.post(actionUrl);
|
||||
}}
|
||||
>
|
||||
<label>
|
||||
@@ -50,9 +51,9 @@ export default function Install({
|
||||
type="checkbox"
|
||||
checked={form.data.confirm}
|
||||
onChange={(e) =>
|
||||
form.setData('confirm', e.target.checked)
|
||||
form.setData("confirm", e.target.checked)
|
||||
}
|
||||
/>{' '}
|
||||
/>{" "}
|
||||
Confirmo a aplicação deste plano
|
||||
</label>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user