From fca707cafc8592c1e0c8048d02d83b03444497c0 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Sat, 14 Apr 2018 19:24:25 +0200 Subject: [PATCH] Minor tweaks --- front/src/views/federation/LibraryDetail.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/front/src/views/federation/LibraryDetail.vue b/front/src/views/federation/LibraryDetail.vue index 9dfe50755c..c64ca2cf23 100644 --- a/front/src/views/federation/LibraryDetail.vue +++ b/front/src/views/federation/LibraryDetail.vue @@ -46,6 +46,7 @@ <td> </td> </tr> + <!-- Disabled until properly implemented on the backend <tr> <td>Auto importing</td> <td> @@ -70,6 +71,7 @@ </td> <td></td> </tr> + --> <tr> <td>Library size</td> <td> @@ -98,10 +100,12 @@ </tbody> </table> </div> + <div class="ui hidden divider"></div> + <button @click="fetchData" class="ui basic button">Refresh</button> </div> <div class="ui vertical stripe segment"> <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> </template> </div> @@ -158,9 +162,9 @@ export default { let self = this params[attr] = newValue 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) => { - console.log(`Error while setting ${attr} to ${newValue}`, error) + logger.default.error(`Error while setting ${attr} to ${newValue}`, error) self.object[attr] = !newValue }) } -- GitLab