From e693737c57a4420a9f3c14b689de7004fb675523 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 20 Sep 2025 10:42:39 +0200 Subject: [PATCH] fixed AI ordering and VNumberInput decimal seperator --- cookbook/models.py | 6 ++++++ vue3/src/vuetify.ts | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/cookbook/models.py b/cookbook/models.py index 3a287ef8c..95c4688d8 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -420,6 +420,9 @@ class AiProvider(models.Model): def __str__(self): return self.name + class Meta: + ordering = ('id',) + class AiLog(models.Model, PermissionModelMixin): F_FILE_IMPORT = 'FILE_IMPORT' @@ -443,6 +446,9 @@ class AiLog(models.Model, PermissionModelMixin): def __str__(self): return f"{self.function} {self.ai_provider.name} {self.created_at}" + class Meta: + ordering = ('id',) + class ConnectorConfig(models.Model, PermissionModelMixin): HOMEASSISTANT = 'HomeAssistant' diff --git a/vue3/src/vuetify.ts b/vue3/src/vuetify.ts index d95cd4953..67371ad95 100644 --- a/vue3/src/vuetify.ts +++ b/vue3/src/vuetify.ts @@ -28,6 +28,10 @@ export default createVuetify({ // always use color for switches to properly see if enabled or not VSwitch: { color: 'primary' + }, + // globally set the correct decimal seperator + VNumberInput: { + decimalSeparator: 0.1.toLocaleString().replace(/\d/g, '') } }, theme: {