diff --git a/src/app/views/river-detail/__tests__/gage-chart-controls.spec.js b/src/app/views/river-detail/__tests__/gage-chart-controls.spec.js deleted file mode 100644 index d86ac161..00000000 --- a/src/app/views/river-detail/__tests__/gage-chart-controls.spec.js +++ /dev/null @@ -1,42 +0,0 @@ -import GageChartControls from '@/app/views/river-detail/components/flow-tab/components/gage-chart-controls.vue' -import { createWrapper } from '@/utils' - -const mockStore = { - state: { - GageReadings: { - data: null, - error: false, - loading: false - }, - GageMetrics: { - data: null - }, - RiverDetail: { - data: null - }, - RiverGages: { - data: null - } - }, - dispatch: jest.fn() -} - -const mockRoute = { - params: { - id: '123' - } -} -const options = { - mocks: { - $store: mockStore, - $route: mockRoute - } -} - -describe('gage-chart-controls.vue', () => { - it('exists', () => { - const wrapper = createWrapper(GageChartControls, options) - - expect(wrapper.find('.gage-chart-controls').exists()).toBe(true) - }) -}) diff --git a/src/app/views/river-detail/components/flow-tab/components/gage-chart-controls.vue b/src/app/views/river-detail/components/flow-tab/components/gage-chart-controls.vue deleted file mode 100644 index 40932207..00000000 --- a/src/app/views/river-detail/components/flow-tab/components/gage-chart-controls.vue +++ /dev/null @@ -1,274 +0,0 @@ - - diff --git a/src/app/views/river-detail/components/flow-tab/components/gage-link-modal/controllers/getGages.js b/src/app/views/river-detail/components/flow-tab/components/gage-link-modal/controllers/getGages.js deleted file mode 100644 index 051c37e3..00000000 --- a/src/app/views/river-detail/components/flow-tab/components/gage-link-modal/controllers/getGages.js +++ /dev/null @@ -1,4 +0,0 @@ -export function getGages() { - /* eslint-disable-next-line no-console */ - console.log('get gages') -} diff --git a/src/app/views/river-detail/components/flow-tab/components/gage-link-modal/gage-link-modal.vue b/src/app/views/river-detail/components/flow-tab/components/gage-link-modal/gage-link-modal.vue deleted file mode 100644 index f9b04457..00000000 --- a/src/app/views/river-detail/components/flow-tab/components/gage-link-modal/gage-link-modal.vue +++ /dev/null @@ -1,61 +0,0 @@ - - diff --git a/src/app/views/river-detail/components/flow-tab/components/gage-readings.vue b/src/app/views/river-detail/components/flow-tab/components/gage-readings.vue deleted file mode 100644 index 4e4b5b1c..00000000 --- a/src/app/views/river-detail/components/flow-tab/components/gage-readings.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - diff --git a/src/app/views/river-detail/components/flow-tab/components/gauge-readings.vue b/src/app/views/river-detail/components/flow-tab/components/gauge-readings.vue new file mode 100644 index 00000000..d3f338db --- /dev/null +++ b/src/app/views/river-detail/components/flow-tab/components/gauge-readings.vue @@ -0,0 +1,87 @@ + + + diff --git a/src/app/views/river-detail/components/flow-tab/components/index.js b/src/app/views/river-detail/components/flow-tab/components/index.js index a7fbceb3..43eb8186 100644 --- a/src/app/views/river-detail/components/flow-tab/components/index.js +++ b/src/app/views/river-detail/components/flow-tab/components/index.js @@ -1,8 +1,6 @@ -export { default as GageReadings } from './gage-readings.vue' -export { default as GageChartControls } from './gage-chart-controls.vue' +export { default as GaugeReadings } from './gauge-readings.vue' export { default as FlowChart } from './flow-chart/flow-chart.vue' export { default as LevelLegend } from './level-legend.vue' export { default as FlowStats } from './flow-stats/flow-stats.vue' -export { default as GageLinkModal } from './gage-link-modal/gage-link-modal.vue' export {default as ReleasesTable} from "./releases-table.vue" export {default as ReleasesCalendar} from "./releases-calendar.vue" diff --git a/src/app/views/river-detail/components/flow-tab/flow-tab.vue b/src/app/views/river-detail/components/flow-tab/flow-tab.vue index b58d0991..ff56d79b 100644 --- a/src/app/views/river-detail/components/flow-tab/flow-tab.vue +++ b/src/app/views/river-detail/components/flow-tab/flow-tab.vue @@ -87,7 +87,7 @@
- +
@@ -190,7 +203,6 @@ - @@ -198,8 +210,7 @@ import { FlowChart, FlowStats, - GageLinkModal, - GageReadings, + GaugeReadings, LevelLegend, ReleasesCalendar, ReleasesTable @@ -218,9 +229,8 @@ const flowviewTable = 1 export default { name: 'flow-tab', components: { - GageLinkModal, FlowChart, - GageReadings, + GaugeReadings, Layout, UtilityBlock, LevelLegend, @@ -233,7 +243,6 @@ export default { activeGaugeIndex: 0, selectedTimespan: 'h:mm a', viewMode: 'chart', - activeMetricId: '', releaseView: 1, reachDetail: null, // TODO: pass this info in as a prop so it's only requested once in all components gaugeCorrelations: [], @@ -242,9 +251,7 @@ export default { computed: { ...mapState({ river: state => state.RiverDetail.data, - ranges: state => state.RiverGages.data?.ranges ?? [], editMode: state => state.Global.editMode, - metrics: state => state.RiverGages.data?.metrics ?? [], }), reachId () { return this.$route.params.id