make library an internal label
This commit is contained in:
@ -9,7 +9,12 @@ import { getRepository } from '../entity/utils'
|
||||
import { CreateLabelInput } from '../generated/graphql'
|
||||
import { generateRandomColor } from '../utils/helpers'
|
||||
|
||||
const INTERNAL_LABELS_IN_LOWERCASE = ['newsletters', 'favorites', 'rss']
|
||||
const INTERNAL_LABELS_IN_LOWERCASE = [
|
||||
'newsletters',
|
||||
'favorites',
|
||||
'rss',
|
||||
'library',
|
||||
]
|
||||
|
||||
const isLabelInternal = (name: string): boolean => {
|
||||
return INTERNAL_LABELS_IN_LOWERCASE.includes(name.toLowerCase())
|
||||
|
||||
Reference in New Issue
Block a user