Skip to content

Commit

Permalink
error report
Browse files Browse the repository at this point in the history
  • Loading branch information
frievoe97 committed Mar 21, 2022
1 parent 4cb9b04 commit 1e97fce
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/charts/heatmap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export default class VueComponent extends Vue {
return dataset
} catch (e) {
const message = '' + e
console.log('Nachricht', message)
this.$store.commit('setStatus', {
type: Status.ERROR,
message,
Expand All @@ -99,7 +98,6 @@ export default class VueComponent extends Vue {
else this.updateChartSimple()
} catch (e) {
const msg = '' + e
console.log('Nachricht', msg)
this.$store.commit('setStatus', {
type: Status.ERROR,
msg,
Expand Down
27 changes: 27 additions & 0 deletions src/components/RunFinderPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@
li(v-html="err.msg" @click="toggleShowDescription(i, false)")
.description(v-if="descriptionIndexListWarning.includes(i)")
p(v-html="err.desc")


.bottom-panel
//- h3 Search
//- input.input(placeholder="Search text (TBA)")
button.button.clear-button(v-if="state.statusErrors.length && showWarnings" @click="clearAllButtons()") Clear all errors...


.commands
button.button(:class="{'is-dark' : state.isDarkMode}" @click="onScan" :title="$t('sync')"): i.fa.fa-sync
Expand Down Expand Up @@ -97,6 +100,10 @@ class MyComponent extends Vue {
this.debounceRunFoldersChanged()
}
@Watch('state.isDarkMode') updateTheme() {
console.log('Hi!', this.$store.state.statusWarnings)
}
private async onRunFoldersChanged() {
const newTree = {} as any
this.rootNodes = []
Expand Down Expand Up @@ -159,6 +166,11 @@ class MyComponent extends Vue {
return rootNode
}
private clearAllButtons() {
console.log(this.state.statusErrors)
this.$store.commit('clearAllErrors')
}
private onSplit() {
this.$emit('split')
}
Expand Down Expand Up @@ -357,6 +369,21 @@ a {
margin-left: -20px;
}
.clear-button {
width: 100%;
margin-bottom: 0.5rem;
margin-left: 0.25rem;
/*
width: 100%;
border-style: none;
background-color: white;
margin-top: 10px;
margin-bottom: 10px;
padding: 5px;
*/
}
::-webkit-scrollbar-corner {
background: rgba(0, 0, 0, 0);
}
Expand Down
10 changes: 8 additions & 2 deletions src/js/DashboardDataManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,14 @@ export default class DashboardDataManager {

thread.onmessage = e => {
if (e.data.error) {
console.error(e.data.error)
globalStore.commit('error', e.data.error)
console.log(e.data.error)
var msg = '' + e.data.error
//globalStore.commit('error', e.data.error)
globalStore.commit('setStatus', {
type: Status.ERROR,
message: '' + msg,
desc: 'Add a desription!',
})
reject()
}
resolve(e.data)
Expand Down
1 change: 1 addition & 0 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import fileSystems from '@/fileSystemConfig'
import { MAP_STYLES_ONLINE, MAP_STYLES_OFFLINE } from '@/Globals'
import { debounce } from '@/js/util'
import SVNFileSystem from './js/HTTPFileSystem'
import { StaticReadUsage } from 'three'

// ----------------------------------------

Expand Down

0 comments on commit 1e97fce

Please sign in to comment.