show spinner only on first load

This commit is contained in:
Oleg Zharkov
2020-10-27 21:12:30 +02:00
parent 2c96acbac3
commit c8ece1298a
@@ -33,16 +33,14 @@
show-empty
>
<template v-slot:empty>
<div v-if="!search_text" class="empty-folder-message">
<div v-if="!search_text && !isBusy" class="empty-folder-message">
This folder is either empty or you do not have proper access permissions to see the contents. If
you expected something to show up please consult the
<a href="https://galaxyproject.org/data-libraries/#permissions" target="_blank">
library security wikipage
</a>
</div>
</template>
<template #table-busy>
<div class="text-center my-2">
<div v-if="isBusy" class="text-center my-2">
<b-spinner class="align-middle"></b-spinner>
<strong>Loading...</strong>
</div>
@@ -332,7 +330,7 @@ export default {
return `${this.root}library/folders/${path[path.length - 2][0]}`;
}
} else {
return false
return false;
}
},
},
@@ -603,4 +601,4 @@ export default {
<style scoped>
@import "library-folder-table.css";
</style>
</style>