mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
[web-src] Add option to only update a single library source
This commit is contained in:
@@ -27,12 +27,20 @@ export default {
|
||||
return axios.get('./api/library')
|
||||
},
|
||||
|
||||
library_update () {
|
||||
return axios.put('./api/update')
|
||||
library_update (scanKind) {
|
||||
const params = {}
|
||||
if (scanKind) {
|
||||
params.scan_kind = scanKind
|
||||
}
|
||||
return axios.put('./api/update', undefined, { params: params })
|
||||
},
|
||||
|
||||
library_rescan () {
|
||||
return axios.put('./api/rescan')
|
||||
library_rescan (scanKind) {
|
||||
const params = {}
|
||||
if (scanKind) {
|
||||
params.scan_kind = scanKind
|
||||
}
|
||||
return axios.put('./api/rescan', undefined, { params: params })
|
||||
},
|
||||
|
||||
library_count (expression) {
|
||||
|
||||
Reference in New Issue
Block a user