Added spinner when loading contexts
This commit is contained in:
parent
414c900b34
commit
17febe83be
|
@ -118,6 +118,9 @@ print $OUTPUT->header();
|
||||||
><span v-if="i>0"> / </span>{{ p }}</span> <span>({{ ctx.studyplancount }})</span>
|
><span v-if="i>0"> / </span>{{ p }}</span> <span>({{ ctx.studyplancount }})</span>
|
||||||
</b-form-select-option>
|
</b-form-select-option>
|
||||||
</b-form-select>
|
</b-form-select>
|
||||||
|
<div v-if="!(usedcontexts.length)" style="position: relative; top: 0.3rem; width: 1.2rem; height: 1.2rem; font-size: 0.7rem;"
|
||||||
|
class="spinner-border text-primary" role="status"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<h3 v-else><?php print $contextname; ?></h3>
|
<h3 v-else><?php print $contextname; ?></h3>
|
||||||
<div class="m-buttonbar" style="margin-bottom: 1em;">
|
<div class="m-buttonbar" style="margin-bottom: 1em;">
|
||||||
|
|
|
@ -114,6 +114,8 @@ print $OUTPUT->header();
|
||||||
><span v-for="(p, i) in ctx.category.path"><span v-if="i>0"> / </span>{{ p }}</span>
|
><span v-for="(p, i) in ctx.category.path"><span v-if="i>0"> / </span>{{ p }}</span>
|
||||||
<span>({{ ctx.studyplancount }})</span></b-form-select-option>
|
<span>({{ ctx.studyplancount }})</span></b-form-select-option>
|
||||||
</b-form-select>
|
</b-form-select>
|
||||||
|
<div v-if="!(usedcontexts.length)" style="position: relative; top: 0.3rem; width: 1.2rem; height: 1.2rem; font-size: 0.7rem;"
|
||||||
|
class="spinner-border text-primary" role="status"></div>
|
||||||
</div>
|
</div>
|
||||||
<h3 v-else><?php print $contextname; ?></h3>
|
<h3 v-else><?php print $contextname; ?></h3>
|
||||||
<div class="m-buttonbar" style="margin-bottom: 1em;">
|
<div class="m-buttonbar" style="margin-bottom: 1em;">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user