Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added extra help link to search results #158

Merged
merged 1 commit into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/components/entity/EntityResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@
"
class="expired-credential"
>
<v-icon>{{mdiCircleMedium}}</v-icon>
<v-icon>{{ mdiCircleMedium }}</v-icon>
Credential expired:
{{
businessAsRelationship[i + relationshipStartIndex].credential
.revoked_date | formatDate
}}
</div>
<v-icon v-else>{{mdiCircleMedium}}</v-icon>
<v-icon v-else>{{ mdiCircleMedium }}</v-icon>
<span @click.stop>
<router-link
:to="`/entity/${
Expand Down Expand Up @@ -366,7 +366,8 @@
<template #header>
<div class="text-body-2">
<div v-if="cred.revoked" class="expired-credential">
Credential replaced: {{ cred.revoked_date | formatDate }}
Credential replaced:
{{ cred.revoked_date | formatDate }}
</div>
<div
v-else-if="isExpired(cred.attributes)"
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/SearchBar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div :class="{ 'pt-4 pb-10': $vuetify.breakpoint.mdAndUp }">
<span class="font-weight-bold mb-1" v-if="$vuetify.breakpoint.mdAndUp">
<SearchHelpPopup>
<SearchHelpPopup :light="true">
<template #title>Find an organization</template>
</SearchHelpPopup>
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/SearchHelp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</v-expansion-panel-header>
<v-expansion-panel-content class="ml-n6 search-help-content">
<slot name="content"></slot>
<SearchHelpPopup>
<SearchHelpPopup :light="true">
<template #title> Not finding what you're looking for </template>
</SearchHelpPopup>
</v-expansion-panel-content>
Expand Down
8 changes: 5 additions & 3 deletions src/components/search/SearchHelpPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Dialog>
<template #activator>
<span @click.stop><slot name="title"></slot> </span
><v-icon small class="fake-link search-help mx-1">{{
><v-icon small :class="{ 'search-help': light }" class="fake-link mx-1">{{
mdiHelpCircleOutline,

}}</v-icon>
Expand Down Expand Up @@ -48,7 +48,7 @@
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { Component, Prop, Vue } from "vue-property-decorator";
import { mapGetters } from "vuex";
import Dialog from "@/components/shared/Dialog.vue";

Expand All @@ -60,7 +60,9 @@ import Dialog from "@/components/shared/Dialog.vue";
...mapGetters(["mdiHelpCircleOutline"]),
},
})
export default class SearchHelpPopup extends Vue {}
export default class SearchHelpPopup extends Vue {
@Prop({ default: false }) light!: boolean;
}
</script>
<style lang="scss" scoped>
.search-help {
Expand Down
8 changes: 7 additions & 1 deletion src/components/search/filter/SearchFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
'float-right': $vuetify.breakpoint.smAndDown,
}"
>
{{ pagedSearchTopics.total }} result(s)
<SearchHelpPopup
><template #title>
{{ pagedSearchTopics.total }} result(s)</template
></SearchHelpPopup
>
</div>
</v-col>
</v-row>
Expand All @@ -20,9 +24,11 @@
import { Component, Vue } from "vue-property-decorator";
import { mapGetters } from "vuex";
import SearchFilterDialog from "./SearchFilterDialog.vue";
import SearchHelpPopup from "@/components/search/SearchHelpPopup.vue";

@Component({
components: {
SearchHelpPopup,
SearchFilterDialog,
},
computed: {
Expand Down