feat(configuration details): better loading UX

This commit is contained in:
Guillaume Chau
2018-08-31 19:59:49 +02:00
parent f8ccef1663
commit 5efbd1b632
@@ -28,6 +28,11 @@
</div>
</template>
<VueLoadingIndicator
v-else
class="loading"
/>
<div class="actions-bar">
<VueButton
v-if="configuration && configuration.link"
@@ -102,6 +107,7 @@ export default {
id: this.id
}
},
manual: true,
async result ({ data, loading }) {
if (!this.$_init && !loading && data && data.configuration) {
this.$_init = true
@@ -109,6 +115,7 @@ export default {
obj[tab.id] = false
return obj
}, {})
this.configuration = data.configuration
await this.$nextTick()
this.currentTab = data.configuration.tabs[0].id
}
@@ -136,6 +143,7 @@ export default {
methods: {
init (tab) {
this.currentTab = '__default'
this.configuration = null
this.$_init = false
},
@@ -176,9 +184,12 @@ export default {
align-items stretch
height 100%
.content
.content,
.loading
flex 100% 1 1
height 0
.content
overflow-x hidden
overflow-y auto