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

Search fix #153

Merged
merged 2 commits into from
Feb 16, 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
5 changes: 4 additions & 1 deletion src/components/about/OrgBookData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
</td>
<td class="float-top pl-0 pr-0 pr-0 pt-2 pb-2 ml-2 mr-2">
<div v-for="type in entry.credentialTypes" :key="type.id">
<router-link :to="`/search?credential_type_id=${type.id}&page=1`">{{ formattedDescription(type) }}</router-link>
<router-link
:to="`/search?credential_type_id=${type.id}&page=1`"
>{{ formattedDescription(type) }}</router-link
>
</div>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions src/components/contact/ContactForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
dense
v-model="formData.from_email"
label="Email address"
:rules="[...alwaysRequired,...emailRules]"
:rules="[...alwaysRequired, ...emailRules]"
></v-text-field>

<div :hidden="incorrectHidden">
Expand Down Expand Up @@ -215,8 +215,8 @@ export default class ContactForm extends Vue {
).validate();
if (isFormValid) {
this.setLoading(true);
if(this.getLikeStatus !== ""){
this.formData.comments = `${this.getLikeStatus}:\n${this.formData.comments}`
if (this.getLikeStatus !== "") {
this.formData.comments = `${this.getLikeStatus}:\n${this.formData.comments}`;
}
const data = { ...this.formData };
data.reason = contactReason[this.formData.reason];
Expand Down
4 changes: 1 addition & 3 deletions src/components/entity/EntityResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,7 @@
<!-- credential timeline -->
<EntityCard :expanded="credentialsExpanded" ref="credentials">
<template #title>
<div class="flex">
Credentials
</div>
<div class="flex">Credentials</div>
</template>
<template>
<!-- header content for the credential card -->
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/footer/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
>
<v-icon>{{ mdiArrowUp }}</v-icon>
</v-btn>
<div class="footer-feedback" >
<div class="footer-feedback">
<v-container :fluid="$vuetify.breakpoint.smAndDown" class="pa-0">
<v-row class="ma-0">
<v-col>
Expand Down
3 changes: 0 additions & 3 deletions src/components/search/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ export default class SearchBar extends Vue {
}

changeSearch(q: string): void {
if (q === this.q) {
return;
}
this.q = q;
this.executeSearch(q);
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/search/SearchHelp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
<v-expansion-panel-content class="ml-n6 search-help-content">
<slot name="content"></slot>
<SearchHelpPopup>
<template #title>
Not finding what you're looking for
</template>
<template #title> Not finding what you're looking for </template>
</SearchHelpPopup>
</v-expansion-panel-content>
</v-expansion-panel>
Expand Down
9 changes: 5 additions & 4 deletions src/components/search/SearchHelpPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<Dialog>
<template #activator>
<span @click.stop><slot name="title"></slot> </span
><v-icon class="icon-dense fake-link search-help" dense>{{
mdiHelpCircle
><v-icon small class="fake-link search-help mx-1">{{
mdiHelpCircleOutline,

}}</v-icon>
</template>
<template #content>
Expand Down Expand Up @@ -56,7 +57,7 @@ import Dialog from "@/components/shared/Dialog.vue";
Dialog,
},
computed: {
...mapGetters(["mdiHelpCircle"]),
...mapGetters(["mdiHelpCircleOutline"]),
},
})
export default class SearchHelpPopup extends Vue {}
Expand All @@ -65,4 +66,4 @@ export default class SearchHelpPopup extends Vue {}
.search-help {
color: $white;
}
</style>
</style>
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import icon, { State as IconState } from "./modules/icon";
import search, { State as SearchState } from "./modules/search";
import stats, { State as StatsState } from "./modules/statistics";
import topic, { State as TopicState } from "./modules/topic";
import like, {State as LikeState} from "./modules/like";
import like, { State as LikeState } from "./modules/like";

Vue.use(Vuex);

Expand Down
4 changes: 2 additions & 2 deletions src/store/modules/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
mdiChevronRight,
mdiClose,
mdiFilterOutline,
mdiHelpCircle,
mdiHelpCircleOutline,
mdiInformationOutline,
mdiMagnify,
mdiMapMarker,
Expand All @@ -35,7 +35,7 @@ const state: State = {
mdiChevronRight,
mdiClose,
mdiFilterOutline,
mdiHelpCircle,
mdiHelpCircleOutline,
mdiInformationOutline,
mdiMagnify,
mdiMapMarker,
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/like.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const state: State = {
const getters = {
getLikeStatus: (state: State): "like" | "dislike" | "" => {
return state.like;
}
},
};

const actions = {
Expand Down