mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 12:53:00 -05:00
[web-src] forced meta rescan
This commit is contained in:
committed by
ejurgensen
parent
e9c1a59ad2
commit
bf7c96d23f
@@ -24,8 +24,9 @@
|
||||
</div>
|
||||
|
||||
<!-- Right side -->
|
||||
<div class="level-right">
|
||||
<div class="level-right buttons">
|
||||
<a class="button is-small is-outlined is-link" :class="{ 'is-loading': library.updating }" @click="update">Update</a>
|
||||
<a class="button is-small is-outlined is-link" :class="{ 'is-loading': library.updating }" @click="update_meta">Force Meta Rescan</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -95,6 +96,10 @@ export default {
|
||||
methods: {
|
||||
update: function () {
|
||||
webapi.library_update()
|
||||
},
|
||||
|
||||
update_meta: function () {
|
||||
webapi.library_update_meta()
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -21,6 +21,10 @@ export default {
|
||||
return axios.get('/api/update')
|
||||
},
|
||||
|
||||
library_update_meta () {
|
||||
return axios.get('/api/update/meta')
|
||||
},
|
||||
|
||||
library_count (expression) {
|
||||
return axios.get('/api/library/count?expression=' + expression)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user