Skip to content

Commit

Permalink
Error and Warning Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
frievoe97 committed Mar 9, 2022
1 parent 9c4d36f commit 2c70ee8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
40 changes: 20 additions & 20 deletions src/charts/bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,26 @@ export default class VueComponent extends Vue {
// Example Error and Warnings
//
// this.$store.commit('setStatus', {
// type: Status.ERROR,
// msg: `This is an Example Error (Bar Plot)`,
// desc: 'Das ist eine detailierte Beschreibung des Fehlers. Damit der Fehler behoben werden kann, muss einiges geändert werden.',
// })
// this.$store.commit('setStatus', {
// type: Status.WARNING,
// msg: `This is an Example Error (Bar Plot)`,
// desc: 'Das ist eine detailierte Beschreibung des Fehlers. Damit der Fehler behoben werden kann, muss einiges geändert werden.',
// })
// this.$store.commit('setStatus', {
// type: Status.ERROR,
// msg: `You did a misstake!`,
// desc: 'Leider hast du einen Fehler.....',
// })
// this.$store.commit('setStatus', {
// type: Status.WARNING,
// msg: `This is an Example Error (Bar Plot) 2`,
// desc: 'Das ist eine detailierte Beschreibung des Fehlers. Damit der Fehler behoben werden kann, muss einiges geändert werden.',
// })
this.$store.commit('setStatus', {
type: Status.ERROR,
msg: `This is an Example Error (Bar Plot)`,
desc: 'Das ist eine detailierte Beschreibung des Fehlers. Damit der Fehler behoben werden kann, muss einiges geändert werden.',
})
this.$store.commit('setStatus', {
type: Status.WARNING,
msg: `This is an Example Error (Bar Plot)`,
desc: 'Das ist eine detailierte Beschreibung des Fehlers. Damit der Fehler behoben werden kann, muss einiges geändert werden.',
})
this.$store.commit('setStatus', {
type: Status.ERROR,
msg: `You did a misstake!`,
desc: 'Leider hast du einen Fehler.....',
})
this.$store.commit('setStatus', {
type: Status.WARNING,
msg: `The data is missing!`,
desc: 'Please upload some data.',
})
// this.$store.commit('setStatus', {
// type: Status.ERROR,
// msg: `Oooopppsss.. Data is missing`,
Expand Down
7 changes: 6 additions & 1 deletion src/components/RunFinderPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
tree-view.things(:initialData="node" @navigate="$emit('navigate', $event)")
.warnings(v-else)
.message-area(v-if="!state.statusErrors.length")
p There are no errors and warnings :)
p.no-error There are no errors and warnings.
.message-area(v-else)
h3 {{state.statusErrors.length}} Errors
.single-message(v-for="err,i in state.statusErrors")
Expand Down Expand Up @@ -352,6 +352,11 @@ a {
margin-left: 0px;
}
.no-error {
text-indent: 0;
margin-left: -20px;
}
::-webkit-scrollbar-corner {
background: rgba(0, 0, 0, 0);
}
Expand Down

0 comments on commit 2c70ee8

Please sign in to comment.