diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue
index 640637a45aa..99a256a94f0 100644
--- a/client/src/components/History/Content/ContentItem.vue
+++ b/client/src/components/History/Content/ContentItem.vue
@@ -38,57 +38,18 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -102,12 +63,14 @@
import { backboneRoute, useGalaxy, iframeRedirect } from "components/plugins/legacyNavigation";
import { Nametag } from "components/Nametags";
import CollectionDescription from "./Collection/CollectionDescription";
+import ContentOptions from "./ContentOptions";
import DatasetDetails from "./Dataset/DatasetDetails";
import STATES from "./contentStates";
export default {
components: {
CollectionDescription,
+ ContentOptions,
DatasetDetails,
Nametag,
},
@@ -138,32 +101,6 @@ export default {
contentState() {
return STATES[this.state] && STATES[this.state];
},
- displayButtonTitle() {
- if (this.item.purged) {
- return "Cannot display datasets removed from disk.";
- }
- if (this.displayDisabled) {
- return "This dataset is not yet viewable.";
- }
- return "Display";
- },
- displayDisabled() {
- return this.item.purged || ["discarded", "new", "upload"].includes(this.state);
- },
- editButtonTitle() {
- if (this.item.purged) {
- return "Cannot edit attributes of datasets removed from disk.";
- }
- if (this.editDisabled) {
- return "This dataset is not yet editable.";
- }
- return "Edit Attributes";
- },
- editDisabled() {
- return (
- this.item.purged || ["discarded", "new", "upload", "queued", "running", "waiting"].includes(this.state)
- );
- },
hasStateIcon() {
return this.contentState && this.contentState.icon;
},
@@ -181,10 +118,12 @@ export default {
},
},
methods: {
- onDragStart(evt) {
- evt.dataTransfer.dropEffect = "move";
- evt.dataTransfer.effectAllowed = "move";
- evt.dataTransfer.setData("text", JSON.stringify([this.item]));
+ onClick() {
+ if (this.isDataset) {
+ this.$emit("update:expand-dataset", !this.expandDataset);
+ } else {
+ this.$emit("view-collection", this.item, this.name);
+ }
},
onDisplay() {
const id = this.item.id;
@@ -196,6 +135,11 @@ export default {
}
});
},
+ onDragStart(evt) {
+ evt.dataTransfer.dropEffect = "move";
+ evt.dataTransfer.effectAllowed = "move";
+ evt.dataTransfer.setData("text", JSON.stringify([this.item]));
+ },
onEdit() {
if (this.item.collection_type) {
backboneRoute(`collection/edit/${this.item.id}`);
@@ -203,13 +147,6 @@ export default {
backboneRoute("datasets/edit", { dataset_id: this.item.id });
}
},
- onClick() {
- if (this.isDataset) {
- this.$emit("update:expand-dataset", !this.expandDataset);
- } else {
- this.$emit("view-collection", this.item, this.name);
- }
- },
},
};
diff --git a/client/src/components/History/Content/ContentOptions.vue b/client/src/components/History/Content/ContentOptions.vue
new file mode 100644
index 00000000000..5f3151e4168
--- /dev/null
+++ b/client/src/components/History/Content/ContentOptions.vue
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/client/src/components/History/Content/Dataset/DatasetDetails.vue b/client/src/components/History/Content/Dataset/DatasetDetails.vue
index b39685169bc..edfd49ff023 100644
--- a/client/src/components/History/Content/Dataset/DatasetDetails.vue
+++ b/client/src/components/History/Content/Dataset/DatasetDetails.vue
@@ -13,7 +13,7 @@
- {{
+ {{
result.genome_build
}}
diff --git a/client/src/components/History/CurrentHistory/HistoryPanel.vue b/client/src/components/History/CurrentHistory/HistoryPanel.vue
index 57c364ebae2..10561a94458 100644
--- a/client/src/components/History/CurrentHistory/HistoryPanel.vue
+++ b/client/src/components/History/CurrentHistory/HistoryPanel.vue
@@ -88,9 +88,9 @@
@update:expand-dataset="setExpanded(item, $event)"
@update:selected="setSelected(item, $event)"
@view-collection="$emit('view-collection', item)"
- @delete="onDelete"
- @undelete="onUndelete"
- @unhide="onUnhide" />
+ @delete="onDelete(item)"
+ @undelete="onUndelete(item)"
+ @unhide="onUnhide(item)" />