Skip to content

Commit

Permalink
Adjust namespace loader UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Nov 6, 2023
1 parent 04fc786 commit 8eb11a8
Showing 1 changed file with 13 additions and 34 deletions.
47 changes: 13 additions & 34 deletions client/web/compose/src/views/Namespace/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,17 @@

<div
v-else
class="loader flex-column w-100 h-100"
class="loader flex-column align-items-center justify-content-center w-100 h-50"
>
<div>
<div class="logo w-100" />

<h1 class="text-center">
{{ namespace ? (namespace.name || namespace.slug || namespace.namespaceID) : '...' }}
</h1>

<div>
<div
v-for="(pending, part) in parts"
:key="part"
class="p-1"
>
<div
class="pending pr-3 d-inline-block text-right"
>
<b-spinner
v-if="pending"
small
/>
<font-awesome-icon
v-else
:icon="['fas', 'check']"
/>
</div>
<div
class="d-inline-block"
>
{{ $t('navigation.' + part) }}
</div>
</div>
</div>
<h1>
{{ namespace ? (namespace.name || namespace.slug || namespace.namespaceID) : '...' }}
</h1>

<div class="d-flex align-items-center justify-content-center mt-4">
<b-spinner />
<h4 class="mb-0 ml-2">
{{ $t('general:label.loading') }}
</h4>
</div>
</div>

Expand Down Expand Up @@ -168,7 +145,9 @@ export default {
.catch(this.errHandler),
]).catch(this.errHandler).then(() => {
this.loaded = true
setTimeout(() => {
this.loaded = true
}, 500)
})
},
Expand Down

0 comments on commit 8eb11a8

Please sign in to comment.