Add character deletion functionality with confirmation workflow
- Added `handleDeleteCharacter` method to handle character deletion with confirmation prompts. - Updated `CharacterComponent` and `CharacterDetail` to include delete button and related logic. - Localized new strings for character deletion (e.g., confirmation prompts, success/error messages). - Enhanced database repository methods (`deleteCharacter`) to handle character deletion securely. - Improved synchronization workflows to accommodate character deletion.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import sqlite3 from 'node-sqlite3-wasm';
|
||||
import { app } from 'electron';
|
||||
|
||||
type Database = sqlite3.Database;
|
||||
|
||||
@@ -18,11 +19,9 @@ const schemaVersion = 1;
|
||||
* DEV ONLY - S'exécute à chaque refresh, pas besoin de version
|
||||
* Mets ta query, test, efface après
|
||||
*/
|
||||
const devQueries: string[] = [
|
||||
const devQueries: string[] = [];
|
||||
|
||||
];
|
||||
|
||||
const isDev = process.env.NODE_ENV === 'development';
|
||||
const isDev:boolean = !app.isPackaged;
|
||||
|
||||
function columnExists(db: Database, table: string, column: string): boolean {
|
||||
const result = db.all(`PRAGMA table_info(${table})`) as { name: string }[];
|
||||
|
||||
Reference in New Issue
Block a user