mirror of
https://github.com/gotson/komga.git
synced 2025-12-17 05:57:56 +01:00
feat(api): update series sharing labels
This commit is contained in:
parent
562c57ccc8
commit
769b0e6a0c
2 changed files with 11 additions and 0 deletions
|
|
@ -539,6 +539,10 @@ class SeriesController(
|
|||
tagsLock = tagsLock ?: existing.tagsLock,
|
||||
totalBookCount = if (isSet("totalBookCount")) totalBookCount else existing.totalBookCount,
|
||||
totalBookCountLock = totalBookCountLock ?: existing.totalBookCountLock,
|
||||
sharingLabels = if (isSet("sharingLabels")) {
|
||||
if (sharingLabels != null) sharingLabels!! else emptySet()
|
||||
} else existing.sharingLabels,
|
||||
sharingLabelsLock = sharingLabelsLock ?: existing.sharingLabelsLock,
|
||||
)
|
||||
}
|
||||
seriesMetadataRepository.update(updated)
|
||||
|
|
|
|||
|
|
@ -74,4 +74,11 @@ class SeriesMetadataUpdateDto {
|
|||
}
|
||||
|
||||
var totalBookCountLock: Boolean? = null
|
||||
|
||||
var sharingLabels: Set<String>?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var sharingLabelsLock: Boolean? = null
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue