fixed AI ordering and VNumberInput decimal seperator

This commit is contained in:
vabene1111
2025-09-20 10:42:39 +02:00
parent 9f239c06d3
commit e693737c57
2 changed files with 10 additions and 0 deletions

View File

@@ -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'

View File

@@ -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: {