From bd73f9dae39d0d8c80e204397c7fb7c817f1cfa0 Mon Sep 17 00:00:00 2001 From: Kevin Thomas Date: Thu, 11 Nov 2021 20:26:41 -0800 Subject: [PATCH] Cleanup UI --- src/components/Noise.vue | 36 ++++++++++++++++++------------------ src/components/noise.js | 12 +++++++++++- src/plugins/vuetify.js | 12 ++++++++++++ 3 files changed, 41 insertions(+), 19 deletions(-) diff --git a/src/components/Noise.vue b/src/components/Noise.vue index 3b06ec2..6dfc63f 100644 --- a/src/components/Noise.vue +++ b/src/components/Noise.vue @@ -28,7 +28,7 @@ class="mx-3 mb-5" fab large - color="secondary" + color="primary" @click="stop" > mdi-stop @@ -68,23 +68,6 @@ Save Profile - - {{ infoSnackbarText }} - - - - + + {{ infoSnackbarText }} + + + + { console.error(error.response) + this.errorSnackbarText = 'Error Saving Profile' + this.errorSnackbar = true }) }, updateProfile () { @@ -323,10 +327,14 @@ export default { .then(response => { if (response.status === 200) { this.populateProfileItems(0) + this.infoSnackbarText = 'Profile Deleted' + this.infoSnackbar = true } }) .catch((error) => { console.error(error.response) + this.errorSnackbarText = 'Error Deleting Profile' + this.errorSnackbar = true }) }, getSamples () { @@ -359,11 +367,13 @@ export default { .then(response => { if (response.status === 200) { this.getSamples() + this.infoSnackbarText = 'Sample Uploaded' + this.infoSnackbar = true } }) .catch((error) => { if (error.response.status === 409) { - this.errorSnackbarText = 'Upload Failed: Duplicate Sample Name' + this.errorSnackbarText = 'Error Uploading Sample: Duplicate Sample Name' this.errorSnackbar = true } console.error(error.response) diff --git a/src/plugins/vuetify.js b/src/plugins/vuetify.js index 496ec37..29ef87a 100644 --- a/src/plugins/vuetify.js +++ b/src/plugins/vuetify.js @@ -1,7 +1,19 @@ import Vue from 'vue' import Vuetify from 'vuetify/lib/framework' +import colors from 'vuetify/lib/util/colors' + Vue.use(Vuetify) export default new Vuetify({ + theme: { + themes: { + light: { + primary: colors.blueGrey + }, + dark: { + primary: colors.blueGrey + } + } + } })