From 8605cb1b8723ae4211dc92f0e5dbbf5da4c749f3 Mon Sep 17 00:00:00 2001 From: Chad Derya Date: Tue, 10 Sep 2019 19:26:08 +0100 Subject: [PATCH] filter by name works, removed some more code --- src/api/terminal.js | 3 +-- src/views/terminals/list.vue | 30 +++++++++++++----------------- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/src/api/terminal.js b/src/api/terminal.js index 8f1272f3..9d846580 100644 --- a/src/api/terminal.js +++ b/src/api/terminal.js @@ -4,8 +4,7 @@ import store from '../store/modules/settings.js' const TerminalEndpointUrl = 'https://metadata.service.development.therig.onlinefuelslabs.io' export function fetchList(query) { - query.platform = store.state.platform - return axios.get(`${TerminalEndpointUrl}/terminals`, { params: query }) + return axios.get(`${TerminalEndpointUrl}/terminals?platform=${store.state.platform}`) } export function fetchTerminal(id) { diff --git a/src/views/terminals/list.vue b/src/views/terminals/list.vue index 6ff92d55..173b2e66 100644 --- a/src/views/terminals/list.vue +++ b/src/views/terminals/list.vue @@ -2,13 +2,13 @@
- + Search
- +