Skip to content
Open
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

<!-- Channel list section -->
<VCardText v-if="loadingChannels">
<LoadingText />
<StudioLargeLoader> Loading collections... </StudioLargeLoader>
</VCardText>
<div
v-else
Expand Down Expand Up @@ -219,6 +219,7 @@
import FullscreenModal from 'shared/views/FullscreenModal';
import Tabs from 'shared/views/Tabs';
import LoadingText from 'shared/views/LoadingText';
import StudioLargeLoader from 'shared/views/StudioLargeLoader.vue';

export default {
name: 'ChannelSetModal',
Expand All @@ -230,6 +231,7 @@
FullscreenModal,
Tabs,
LoadingText,
StudioLargeLoader,
},
mixins: [constantsTranslationMixin, routerMixin],
props: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<template>

<div class="studio-large-loader">
<KCircularLoader :size="70" />
<div class="loader-text">
<slot ></slot>
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required, so should be removed.

</div>

</template>


<script>

import KCircularLoader from 'kolibri-design-system/lib/loaders/KCircularLoader.vue';

export default {
name: 'StudioLargeLoader',
components: { KCircularLoader },
};

</script>


<style scoped>

.studio-large-loader {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 180px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the loader size should be set using the size prop of the KCircularLoader so setting min-hight may not be useful in this case.

}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


.loader-text {
margin-top: 16px;
font-size: 1.2em;
color: #555555;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets use the the KDS colors here. There are quite a number of examples on how this can be done eg $themeTokens, $themePalette, etc. Heres a example

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of https://github.com/learningequality/studio/pull/5388/files#r2388418039, this css class should be removed as well

}

</style>
Loading