Skip to content
Snippets Groups Projects
Verified Commit fca707ca authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Minor tweaks

parent fc09a3b3
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<td> <td>
</td> </td>
</tr> </tr>
<!-- Disabled until properly implemented on the backend
<tr> <tr>
<td>Auto importing</td> <td>Auto importing</td>
<td> <td>
...@@ -70,6 +71,7 @@ ...@@ -70,6 +71,7 @@
</td> </td>
<td></td> <td></td>
</tr> </tr>
-->
<tr> <tr>
<td>Library size</td> <td>Library size</td>
<td> <td>
...@@ -98,10 +100,12 @@ ...@@ -98,10 +100,12 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="ui hidden divider"></div>
<button @click="fetchData" class="ui basic button">Refresh</button>
</div> </div>
<div class="ui vertical stripe segment"> <div class="ui vertical stripe segment">
<h2>Tracks available in this library</h2> <h2>Tracks available in this library</h2>
<library-track-table :filters="{library: id}"></library-track-table> <library-track-table v-if="!isLoading" :filters="{library: id}"></library-track-table>
</div> </div>
</template> </template>
</div> </div>
...@@ -158,9 +162,9 @@ export default { ...@@ -158,9 +162,9 @@ export default {
let self = this let self = this
params[attr] = newValue params[attr] = newValue
axios.patch('federation/libraries/' + this.id + '/', params).then((response) => { axios.patch('federation/libraries/' + this.id + '/', params).then((response) => {
console.log(`${attr} was updated succcessfully to ${newValue}`) logger.default.info(`${attr} was updated succcessfully to ${newValue}`)
}, (error) => { }, (error) => {
console.log(`Error while setting ${attr} to ${newValue}`, error) logger.default.error(`Error while setting ${attr} to ${newValue}`, error)
self.object[attr] = !newValue self.object[attr] = !newValue
}) })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment