Created
October 25, 2023 15:35
-
-
Save dannon/e90f4e4e99a65259108e01d023177225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1mdiff --git a/client/src/components/History/Content/ContentItem.test.js b/client/src/components/History/Content/ContentItem.test.js[m | |
[1mindex 8526789a84..01d4dffbae 100644[m | |
[1m--- a/client/src/components/History/Content/ContentItem.test.js[m | |
[1m+++ b/client/src/components/History/Content/ContentItem.test.js[m | |
[36m@@ -46,12 +46,12 @@[m [mdescribe("ContentItem", () => {[m | |
DatasetDetails: true,[m | |
vueTagsInput: false,[m | |
},[m | |
[31m- provide: {[m | |
[31m- store: {[m | |
[31m- dispatch: jest.fn,[m | |
[31m- getters: {},[m | |
[31m- },[m | |
[31m- },[m | |
[32m+[m[32m // provide: {[m | |
[32m+[m[32m // store: {[m | |
[32m+[m[32m // dispatch: jest.fn,[m | |
[32m+[m[32m // getters: {},[m | |
[32m+[m[32m // },[m | |
[32m+[m[32m // },[m | |
pinia: createTestingPinia(),[m | |
});[m | |
});[m | |
[36m@@ -108,5 +108,7 @@[m [mdescribe("ContentItem", () => {[m | |
expect(wrapper.emitted()["update:selected"][1][0]).toBe(false);[m | |
expect(wrapper.classes()).toEqual(expect.arrayContaining(["alert-info"]));[m | |
expect(selector.attributes("data-icon")).toBe("check-square");[m | |
[32m+[m | |
[32m+[m[32m console.debug(wrapper.find("#findme").html());[m | |
});[m | |
});[m | |
[1mdiff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue[m | |
[1mindex 01453eb7d6..f9151a0b84 100644[m | |
[1m--- a/client/src/components/History/Content/ContentItem.vue[m | |
[1m+++ b/client/src/components/History/Content/ContentItem.vue[m | |
[36m@@ -78,6 +78,13 @@[m [mconst jobState = computed(() => new JobStateSummary(props.item));[m | |
[m | |
const contentId = computed(() => `dataset-${props.item.id}`);[m | |
[m | |
[32m+[m[32mconst itemId = computed(() => {[m | |
[32m+[m[32m console.debug("props.item.id is", props.item.id);[m | |
[32m+[m[32m return props.item.id;[m | |
[32m+[m[32m});[m | |
[32m+[m | |
[32m+[m[32mdefineExpose({ itemId });[m | |
[32m+[m | |
const state: ComputedRef<State> = computed(() => {[m | |
if (props.isPlaceholder) {[m | |
return "placeholder";[m | |
[36m@@ -303,14 +310,19 @@[m [mfunction toggleHighlights() {[m | |
@tag-click="onTagClick" />[m | |
<!-- collections are not expandable, so we only need the DatasetDetails component here -->[m | |
<b-collapse :visible="expandDataset">[m | |
[31m- <DatasetDetails[m | |
[32m+[m[32m <div id="findme">[m | |
[32m+[m[32m id: {{ item.id }}[m | |
[32m+[m[32m item: {{ item }}[m | |
[32m+[m[32m itemId: {{ itemId }}[m | |
[32m+[m[32m </div>[m | |
[32m+[m[32m <!-- <DatasetDetails[m | |
v-if="expandDataset"[m | |
:id="item.id"[m | |
:writable="writable"[m | |
:show-highlight="(isHistoryItem && filterable) || addHighlightBtn"[m | |
:item-urls="itemUrls"[m | |
@edit="onEdit"[m | |
[31m- @toggleHighlights="toggleHighlights" />[m | |
[32m+[m[32m @toggleHighlights="toggleHighlights" /> -->[m | |
</b-collapse>[m | |
</div>[m | |
</template>[m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment