Skip to content

Commit

Permalink
added extra help link to search results
Browse files Browse the repository at this point in the history
Signed-off-by: wadeking98 <wkingnumber2@gmail.com>
  • Loading branch information
wadeking98 committed Feb 18, 2022
1 parent 8af4f53 commit 7347984
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
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

0 comments on commit 7347984

Please sign in to comment.