Commit 848a6eb1 authored by Raihan Kabir's avatar Raihan Kabir Committed by rk4bir

updated icon span with GlLoadingIcon component

parent c4a9f88e
import Vue from 'vue'; import Vue from 'vue';
import pdfLab from '../../pdf/index.vue'; import pdfLab from '../../pdf/index.vue';
import { GlLoadingIcon } from '@gitlab/ui';
export default () => { export default () => {
const el = document.getElementById('js-pdf-viewer'); const el = document.getElementById('js-pdf-viewer');
...@@ -8,6 +9,7 @@ export default () => { ...@@ -8,6 +9,7 @@ export default () => {
el, el,
components: { components: {
pdfLab, pdfLab,
GlLoadingIcon,
}, },
data() { data() {
return { return {
...@@ -32,11 +34,7 @@ export default () => { ...@@ -32,11 +34,7 @@ export default () => {
<div <div
class="text-center loading" class="text-center loading"
v-if="loading && !error"> v-if="loading && !error">
<span <gl-loading-icon />
class="spinner spinner-sm"
aria-hidden="true"
aria-label="PDF loading">
</span>
</div> </div>
<pdf-lab <pdf-lab
v-if="!loadError" v-if="!loadError"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment