- Use PlatformServiceMixin for platform and database access - Replace manual PlatformService instantiation with mixin methods/properties - Use $contacts() for contact export - Use capabilities for platform checks in template and logic - Remove unused imports and redundant code - Lint clean
29 lines
915 B
Vue
29 lines
915 B
Vue
<template>
|
|
<section v-if="isRegistered" class="mt-4">
|
|
<h2 class="text-lg font-semibold mb-2">Location for Searches</h2>
|
|
<div v-if="searchAreaLabel" class="mb-2">
|
|
<span class="text-slate-700">Current Area: </span>
|
|
<span class="font-mono">{{ searchAreaLabel }}</span>
|
|
</div>
|
|
<button
|
|
class="w-full text-md bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-4 py-2 rounded-md"
|
|
@click="setSearchArea"
|
|
>
|
|
Set Search Area...
|
|
</button>
|
|
</section>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Component, Vue, Prop, Emit } from "vue-facing-decorator";
|
|
|
|
@Component({ name: "LocationSearchSection" })
|
|
export default class LocationSearchSection extends Vue {
|
|
@Prop({ required: true }) isRegistered!: boolean;
|
|
@Prop({ required: false }) searchAreaLabel?: string;
|
|
|
|
@Emit("set-search-area")
|
|
setSearchArea() {}
|
|
}
|
|
</script>
|