mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 04:42:58 -05:00
[web-src] forced meta rescan
This commit is contained in:
committed by
ejurgensen
parent
e9c1a59ad2
commit
bf7c96d23f
@@ -97,6 +97,8 @@
|
||||
<div class="column is-7 content">
|
||||
<a class="button" v-on:click="update" v-show="!library.updating">Update library</a>
|
||||
<p v-show="library.updating">Update in progress ...</p>
|
||||
<a class="button" v-on:click="update_meta" v-show="!library.updating">Rescan library meta</a>
|
||||
<p v-show="library.updating">Rescan in progress ...</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -56,6 +56,11 @@ var app = new Vue({
|
||||
axios.get('/api/update').then(console.log('Library is updating'));
|
||||
},
|
||||
|
||||
update_meta: function() {
|
||||
this.library.updating = true;
|
||||
axios.get('/api/update/meta').then(console.log('Library is rescanning meta'));
|
||||
},
|
||||
|
||||
kickoffPairing: function() {
|
||||
axios.post('/api/pairing', this.pairing_req).then(response => {
|
||||
console.log('Kicked off pairing');
|
||||
|
||||
Reference in New Issue
Block a user