From 9c1271a9d8be52ea794f9d5346e53692022aeff3 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Tue, 31 Dec 2024 21:49:18 +0300 Subject: [PATCH] Added id to useful command to ease communication for which command to run. --- frontend/pages/backends/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/pages/backends/index.vue b/frontend/pages/backends/index.vue index 776b9e64..56774e7a 100644 --- a/frontend/pages/backends/index.vue +++ b/frontend/pages/backends/index.vue @@ -142,7 +142,7 @@ @@ -192,26 +192,31 @@ const selectedCommand = ref('') const usefulCommands = { export_now: { + id: 1, title: "Run normal export.", command: 'state:export -v -s {name}', state_key: 'export.enabled', }, import_now: { + id: 2, title: "Run normal import.", command: 'state:import -v -s {name}', state_key: 'import.enabled' }, force_export: { + id: 3, title: "Force export local play state to this backend.", command: 'state:export -fi -v -s {name}', state_key: 'export.enabled', }, backup_now: { + id: 4, title: "Backup this backend play state.", command: "state:backup -v -s {name} --file '{date}.manual_{name}.json'", state_key: 'import.enabled', }, metadata_only: { + id: 5, title: "Import this backend metadata.", command: "state:import -v --metadata-only -s {name}", state_key: 'import.enabled',