mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
fix races, hide empty text and add busy spinner
This commit is contained in:
@@ -41,6 +41,12 @@
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
<template #table-busy>
|
||||
<div class="text-center my-2">
|
||||
<b-spinner class="align-middle"></b-spinner>
|
||||
<strong>Loading...</strong>
|
||||
</div>
|
||||
</template>
|
||||
<template v-slot:head(selected)="">
|
||||
<font-awesome-icon
|
||||
v-if="isAllSelectedMode && !isAllSelectedOnPage()"
|
||||
@@ -297,7 +303,7 @@ export default {
|
||||
return {
|
||||
error: null,
|
||||
isBusy: false,
|
||||
folder_metadata: null,
|
||||
folder_metadata: {},
|
||||
currentPage: 1,
|
||||
fields: fields,
|
||||
selectMode: "multi",
|
||||
@@ -312,16 +318,21 @@ export default {
|
||||
filterOn: [],
|
||||
search_text: "",
|
||||
isAllSelectedMode: false,
|
||||
total_rows: 0,
|
||||
deselectedDatasets: [],
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
parentFolder() {
|
||||
const path = this.folder_metadata.full_path;
|
||||
if (path.length === 1) {
|
||||
return `${this.root}library/list/`;
|
||||
if (this.folder_metadata && this.folder_metadata.full_path) {
|
||||
const path = this.folder_metadata.full_path;
|
||||
if (path.length === 1) {
|
||||
return `${this.root}library/list/`;
|
||||
} else {
|
||||
return `${this.root}library/folders/${path[path.length - 2][0]}`;
|
||||
}
|
||||
} else {
|
||||
return `${this.root}library/folders/${path[path.length - 2][0]}`;
|
||||
return false
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -229,11 +229,12 @@ export default {
|
||||
this.fetchExtAndGenomes();
|
||||
},
|
||||
mounted() {
|
||||
new mod_path_bar.PathBar({
|
||||
full_path: this.metadata.full_path,
|
||||
id: this.folder_id,
|
||||
parent_library_id: this.metadata.parent_library_id,
|
||||
});
|
||||
if (this.metadata.full_path)
|
||||
new mod_path_bar.PathBar({
|
||||
full_path: this.metadata.full_path,
|
||||
id: this.folder_id,
|
||||
parent_library_id: this.metadata.parent_library_id,
|
||||
});
|
||||
},
|
||||
computed: {
|
||||
contains_file_or_folder: function () {
|
||||
|
||||
Reference in New Issue
Block a user