adding organization feature.

This commit is contained in:
killian-larcher
2024-12-12 13:31:11 +01:00
parent 5bd24574c3
commit afb936bc5b
29 changed files with 363 additions and 93 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ export const backupColumns: ColumnDef<Backup>[] = [
const {extendedProps} = table.options.meta;
const isRestauring = !!rowData.restaurations.find(restauration => restauration.status === "waiting");
// const isRestauring = !!rowData.restaurations.find(restauration => restauration.status === "waiting");
const router = useRouter()
+2 -2
View File
@@ -26,7 +26,7 @@ export const createRestaurationAction = userAction
success: true,
value: restauration,
actionSuccess: {
message: "Restauration has been successfully created.",
message: "Restoration has been successfully created.",
messageParams: { restaurationId: restauration.id },
},
};
@@ -38,7 +38,7 @@ export const createRestaurationAction = userAction
message: "Failed to create backup.",
status: 500,
cause: error instanceof Error ? error.message : "Unknown error",
messageParams: { message: "Error creating the restauration" },
messageParams: { message: "Error creating the restoration" },
},
};
}