1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add notifications in the client

This commit is contained in:
Chocobozzz 2019-01-08 11:26:41 +01:00 committed by Chocobozzz
parent f7cc67b455
commit 2f1548fda3
56 changed files with 1073 additions and 112 deletions

View file

@ -9,8 +9,8 @@ function isArray (value: any) {
return Array.isArray(value)
}
function isIntArray (value: any) {
return Array.isArray(value) && value.every(v => validator.isInt('' + v))
function isNotEmptyIntArray (value: any) {
return Array.isArray(value) && value.every(v => validator.isInt('' + v)) && value.length !== 0
}
function isDateValid (value: string) {
@ -82,7 +82,7 @@ function isFileValid (
export {
exists,
isIntArray,
isNotEmptyIntArray,
isArray,
isIdValid,
isUUIDValid,