Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
- shorter tab names
Browse files Browse the repository at this point in the history
- lat/lng shown on map points
- remove zoom from stations map
  • Loading branch information
hardiesoft committed Jul 20, 2021
1 parent f13bce2 commit af9a882
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/Devices/DeviceDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
nav-class="device-tabs-container container"
v-model="currentTabIndex"
>
<b-tab title="Current Software" lazy>
<b-tab title="About" lazy>
<DeviceSoftware :software="software" />
</b-tab>
<b-tab title="Users" lazy>
Expand Down Expand Up @@ -106,9 +106,9 @@ export default {
data() {
return {
tabNames: [
"current-software",
"device-users",
"device-events",
"about",
"users",
"events",
"recordings",
"visits",
"schedule",
Expand Down
5 changes: 4 additions & 1 deletion src/components/MapWithPoints.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
:fill-opacity="1"
@click="(e) => navigateToLocation(point)"
>
<l-tooltip>{{ point.name }}</l-tooltip>
<l-tooltip
>{{ point.name }}: {{ Number(point.location.lat).toFixed(5) }},
{{ Number(point.location.lng).toFixed(5) }}</l-tooltip
>
</l-circle-marker>
</l-map>
</template>
Expand Down
6 changes: 5 additions & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ function createRouter() {
const pieces = output.split(" ");
for (const piece of pieces) {
if (piece.startsWith(":") && params[piece.slice(1)]) {
output = output.replace(piece, params[piece.slice(1)]);
const replaceWith = params[piece.slice(1)];
output = output.replace(
piece,
replaceWith[0].toUpperCase() + replaceWith.slice(1)
);
foundMatch = true;
break;
}
Expand Down
1 change: 1 addition & 0 deletions src/views/StationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:radius="60"
:can-change-base-map="false"
:is-interactive="false"
:zoom="false"
:points="[{ name: station.name, location }]"
></MapWithPoints>
<b-jumbotron class="jumbotron" fluid>
Expand Down

0 comments on commit af9a882

Please sign in to comment.