From 6a4cca751c88e89ddf5f2cc0f09a58f097a461af Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 30 Jul 2023 21:01:05 +0200 Subject: [PATCH] fix: fix issue with create/edit presets and refactor settings (#1499) --- .../settings/Presets/PresetsEntry.vue | 56 +++ .../settings/Presets/PresetsEntryCooldown.vue | 26 ++ .../settings/Presets/PresetsForm.vue | 182 ++++++++++ .../settings/Presets/PresetsFormCooldown.vue | 52 +++ .../settings/SettingsPresetsTab.vue | 319 ++---------------- 5 files changed, 342 insertions(+), 293 deletions(-) create mode 100644 src/components/settings/Presets/PresetsEntry.vue create mode 100644 src/components/settings/Presets/PresetsEntryCooldown.vue create mode 100644 src/components/settings/Presets/PresetsForm.vue create mode 100644 src/components/settings/Presets/PresetsFormCooldown.vue diff --git a/src/components/settings/Presets/PresetsEntry.vue b/src/components/settings/Presets/PresetsEntry.vue new file mode 100644 index 000000000..1b9842555 --- /dev/null +++ b/src/components/settings/Presets/PresetsEntry.vue @@ -0,0 +1,56 @@ + + + diff --git a/src/components/settings/Presets/PresetsEntryCooldown.vue b/src/components/settings/Presets/PresetsEntryCooldown.vue new file mode 100644 index 000000000..c57f7a0b0 --- /dev/null +++ b/src/components/settings/Presets/PresetsEntryCooldown.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/components/settings/Presets/PresetsForm.vue b/src/components/settings/Presets/PresetsForm.vue new file mode 100644 index 000000000..0db5c6b36 --- /dev/null +++ b/src/components/settings/Presets/PresetsForm.vue @@ -0,0 +1,182 @@ + + + diff --git a/src/components/settings/Presets/PresetsFormCooldown.vue b/src/components/settings/Presets/PresetsFormCooldown.vue new file mode 100644 index 000000000..a56b54d11 --- /dev/null +++ b/src/components/settings/Presets/PresetsFormCooldown.vue @@ -0,0 +1,52 @@ + + + diff --git a/src/components/settings/SettingsPresetsTab.vue b/src/components/settings/SettingsPresetsTab.vue index cdfed2605..536f0359a 100644 --- a/src/components/settings/SettingsPresetsTab.vue +++ b/src/components/settings/SettingsPresetsTab.vue @@ -1,336 +1,69 @@