1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Working on google maps implementation

This commit is contained in:
David Bomba 2019-01-28 08:34:57 +11:00
parent 545a8df362
commit f345986157
6 changed files with 16 additions and 5 deletions

View File

@ -136,7 +136,10 @@ class ClientController extends Controller
$data = [
'client' => $client,
'company' => auth()->user()->company()
'company' => auth()->user()->company(),
'meta' => [
'google_maps_api_key' => config('ninja.google_maps_api_key')
]
];
return view('client.show', $data);

View File

@ -36,6 +36,7 @@
"vuetable-2": "^1.7.5"
},
"dependencies": {
"@pderas/vue2-geocoder": "^1.0.2",
"@types/lodash": "^4.14.118",
"@types/node": "^10.12.10",
"axios-progress-bar": "^1.2.0",

View File

@ -3631,8 +3631,9 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//import Vue from "vue"
exports.default = {
props: ['client', 'company']
props: ['client', 'company', 'meta'],
};

View File

@ -3631,8 +3631,9 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//import Vue from "vue"
exports.default = {
props: ['client', 'company']
props: ['client', 'company', 'meta'],
};

View File

@ -111,8 +111,13 @@
<script lang="ts">
import Geocoder from "@pderas/vue2-geocoder";
//import Vue from "vue"
export default {
props: ['client', 'company']
props: ['client', 'company', 'meta'],
}
</script>

View File

@ -11,7 +11,7 @@
<div class="container-fluid">
<client-show :client="{{ $client }}" :company="{{ $company }}"></client-show>
<client-show :client="{{ $client }}" :company="{{ $company }}" :meta="{{ $meta }}"></client-show>