From 78bb6bdbe24f5746af8c66a4683f26273fb92a58 Mon Sep 17 00:00:00 2001 From: Eric Gauzens Date: Wed, 29 May 2024 10:26:38 -0400 Subject: [PATCH 1/2] styling bug fix --- mixins/consortia/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mixins/consortia/index.js b/mixins/consortia/index.js index dee18283..9f5b80cf 100644 --- a/mixins/consortia/index.js +++ b/mixins/consortia/index.js @@ -10,10 +10,11 @@ export default { * Fetch dataset information from discover api with dataset id and version */ async fetchConsortiaStyle(consortiaId) { + console.log("ID = ", consortiaId) const consortiaItem = await this.$contentfulClient.getEntries({ content_type: this.$config.public.ctf_consortia_content_type_id, - 'fields.title': consortiaId + 'fields.title[match]': consortiaId }).then(response => { return propOr([], 'items', response)[0] }).catch(() => { }) @@ -21,7 +22,7 @@ export default { let style = thirdColor == undefined && secondColor == undefined ? { backgroundColor: `#${firstColor}` } : thirdColor == undefined ? { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}` } : - { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}, #${thirdColor}` } + { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}, #${thirdColor}` } style = { ...style, '--button-and-link-color': `#${buttonAndLinkColor}`, '--button-and-link-secondary-color': `#${buttonAndLinkColor}16` } this.consortiaStyle = style }, From 5c547099c3f3a7d6b899e340617ddd1ba86cf956 Mon Sep 17 00:00:00 2001 From: Eric Gauzens Date: Wed, 29 May 2024 10:27:38 -0400 Subject: [PATCH 2/2] style fix --- mixins/consortia/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixins/consortia/index.js b/mixins/consortia/index.js index 9f5b80cf..dd73f6a0 100644 --- a/mixins/consortia/index.js +++ b/mixins/consortia/index.js @@ -22,7 +22,7 @@ export default { let style = thirdColor == undefined && secondColor == undefined ? { backgroundColor: `#${firstColor}` } : thirdColor == undefined ? { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}` } : - { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}, #${thirdColor}` } + { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}, #${thirdColor}` } style = { ...style, '--button-and-link-color': `#${buttonAndLinkColor}`, '--button-and-link-secondary-color': `#${buttonAndLinkColor}16` } this.consortiaStyle = style },