mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
fixed AI ordering and VNumberInput decimal seperator
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user