fix(oci): call the editing of an application Modify everywhere

- The option that edits an installed application is Modify for one container and for a multi-container application, in the OCI menu and on the Monitor button. Recreate is only the rebuild of a multi-container application as it is.
- A stack recreation says "Recreating" and "Recreated" in its steps instead of "Updating".
- The notes of the GPU, Coral, disk and share menus no longer name the option.
- Spanish for the new texts; the English copies of the stack texts are removed from de, fr, pt and sv so the bot translates them.
This commit is contained in:
MacRimi
2026-10-06 19:42:30 +02:00
parent 747b32489f
commit 3f75b94ea1
31 changed files with 185 additions and 163 deletions
+6 -6
View File
@@ -954,7 +954,7 @@ export function VirtualMachines() {
// A container restored from a backup carries the mark of its installation
// and has no record on this host until it is recovered from the menu.
const [ociRestored, setOciRestored] = useState(false)
const [ociAction, setOciAction] = useState<{ vmid: number; action: "update" | "modify" | "recreate" | "recover" } | null>(null)
const [ociAction, setOciAction] = useState<{ vmid: number; action: "update" | "modify" | "recover" } | null>(null)
// Firewall log state — fetched only when the operator opens that tab
// so a CT/VM without firewall use doesn't pay the pvesh cost on every
@@ -5343,11 +5343,11 @@ const handleDownloadLogs = async (vmid: number, vmName: string) => {
className={neutralBtnCls}
onClick={() => setOciAction({
vmid: selectedVM.vmid,
action: ociInstance.stack ? "modify" : "recreate",
action: "modify",
})}
>
<RotateCcw className="h-4 w-4 mr-1.5" />
{t("vmLxc.ociUpdates.recreate")}
<Settings2 className="h-4 w-4 mr-1.5" />
{t("vmLxc.ociUpdates.modify")}
</Button>
)}
<Button
@@ -7839,7 +7839,7 @@ const handleDownloadLogs = async (vmid: number, vmName: string) => {
/>
)}
{/* Update or recreate an OCI instance: the same flow as OCI manager
{/* Update or modify an OCI instance: the same flow as OCI manager
Apps -> Manage installed OCI applications, for this container. */}
{ociAction && (
<ScriptTerminalModal
@@ -7862,7 +7862,7 @@ const handleDownloadLogs = async (vmid: number, vmName: string) => {
scriptName="oci_manage_instance"
title={ociAction.action === "update" ? t("vmLxc.ociUpdates.terminalTitleUpdate")
: ociAction.action === "recover" ? t("vmLxc.ociUpdates.terminalTitleRecover")
: t("vmLxc.ociUpdates.terminalTitleRecreate")}
: t("vmLxc.ociUpdates.terminalTitleModify")}
description={t("vmLxc.ociUpdates.terminalDescription")}
params={{
VMID: String(ociAction.vmid),