Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Aug 15, 2024
2 parents 98d8e2a + 4c81c5c commit 8b5775e
Showing 1 changed file with 38 additions and 22 deletions.
60 changes: 38 additions & 22 deletions src/components/ConnectivityInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@
<div class="connectivity-info-title">
<div>
<div class="block" v-if="entry.title">
<div class="title">{{ capitalise(entry.title) }}</div>
<div class="title">
{{ capitalise(entry.title) }}
<template v-if="entry.featuresAlert">
<el-popover
width="250"
trigger="hover"
:teleported="false"
popper-class="popover-origin-help"
>
<template #reference>
<el-icon class="alert"><el-icon-warn-triangle-filled /></el-icon>
</template>
<span style="word-break: keep-all">
{{ entry.featuresAlert }}
</span>
</el-popover>
</template>
</div>
<div
v-if="
entry.provenanceTaxonomyLabel &&
Expand Down Expand Up @@ -41,22 +58,6 @@
<CopyToClipboard :content="updatedCopyContent" />
</div>
</div>
<div v-if="featuresAlert" class="attribute-title-container">
<span class="attribute-title">Alert</span>
<el-popover
width="250"
trigger="hover"
:teleported="false"
popper-class="popover-origin-help"
>
<template #reference>
<el-icon class="info"><el-icon-warning /></el-icon>
</template>
<span style="word-break: keep-all">
{{ featuresAlert }}
</span>
</el-popover>
</div>
<div class="content-container scrollbar">
{{ entry.paths }}
<div v-if="entry.origins && entry.origins.length > 0" class="block">
Expand Down Expand Up @@ -229,14 +230,14 @@ export default {
originsWithDatasets: [],
componentsWithDatasets: [],
resource: undefined,
featuresAlert: undefined,
}),
},
availableAnatomyFacets: {
type: Array,
default: () => [],
},
},
// inject: ['getFeaturesAlert'],
data: function () {
return {
controller: undefined,
Expand Down Expand Up @@ -274,9 +275,6 @@ export default {
}
return resources;
},
featuresAlert() {
// return this.getFeaturesAlert()
},
originDescription: function () {
if (
this.entry &&
Expand Down Expand Up @@ -517,6 +515,9 @@ export default {
:deep(.popover-origin-help.el-popover) {
text-transform: none !important; // need to overide the tooltip text transform
border: 1px solid $app-primary-color;
font-weight: 400;
font-family: Asap, sans-serif, Helvetica;
.el-popper__arrow {
&:before {
border-color: $app-primary-color;
Expand All @@ -525,12 +526,27 @@ export default {
}
}
.info,
.alert {
color: #8300bf;
}
.info {
transform: rotate(180deg);
color: #8300bf;
margin-left: 8px;
}
.alert {
margin-left: 5px;
vertical-align: text-bottom;
&,
> svg {
width: 1.25rem;
height: 1.25rem;
}
}
.seperator {
width: 90%;
height: 1px;
Expand Down

0 comments on commit 8b5775e

Please sign in to comment.