mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add field validation for some widgets
This commit is contained in:
@@ -11,12 +11,21 @@ const widget = {
|
||||
map: (data) => ({
|
||||
total: asJson(data).length,
|
||||
}),
|
||||
validate: [
|
||||
"total"
|
||||
]
|
||||
},
|
||||
queue: {
|
||||
endpoint: "queue",
|
||||
validate: [
|
||||
"totalRecords"
|
||||
]
|
||||
},
|
||||
"wanted/missing": {
|
||||
endpoint: "wanted/missing",
|
||||
validate: [
|
||||
"totalRecords"
|
||||
]
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user