From f4c2e6c08c13a743460e1f207385af6bb60e1d6a Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Mon, 16 Dec 2019 02:39:13 +0100 Subject: [PATCH] Replaced default height and weight fields with fields taking units argument. --- assets/components/actors/actor.vue | 22 ++-------- assets/js/actors/actions.js | 61 ++++++++++++++++++++++++--- assets/js/releases/actions.js | 2 + migrations/20190325001339_releases.js | 11 ++++- package.json | 1 + src/web/plugins/actors.js | 48 +++++++++++++++++++++ src/web/plugins/plugins.js | 7 +++ src/web/server.js | 7 ++- 8 files changed, 133 insertions(+), 26 deletions(-) create mode 100644 src/web/plugins/actors.js create mode 100644 src/web/plugins/plugins.js diff --git a/assets/components/actors/actor.vue b/assets/components/actors/actor.vue index 6e5c7e60..962c97d7 100644 --- a/assets/components/actors/actor.vue +++ b/assets/components/actors/actor.vue @@ -136,8 +136,8 @@ > Height - {{ actor.height }} cm - {{ imperialHeight.feet }}' {{ imperialHeight.inches }}" + {{ actor.height.metric }} cm + {{ actor.height.imperial }} @@ -148,8 +148,8 @@ Weight - {{ actor.weight }} kg - {{ imperialWeight }} lbs + {{ actor.weight.metric }} kg + {{ actor.weight.imperial }} lbs @@ -239,8 +239,6 @@