Skip to content

Commit

Permalink
Basic GUI error controller
Browse files Browse the repository at this point in the history
Added some very basic UI for errors.
  • Loading branch information
juan-carvajal committed May 20, 2020
1 parent fd2bd59 commit 36ebe6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/layout/starter/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
<h1 class="text-center display-1">SSL Test History</h1>

<card>
<form @submit.prevent @submit="refresh">
<h3 v-if="!history" class="card-subtitle mb-2 text-muted text-center">Could not load history.</h3>
<form @submit.prevent @submit="refresh" v-if="history">
<base-input label="Test Select">
<select class="form-control select-primary" id="testSelect" v-model="current">
<select class="form-control select-primary" id="testSelect" v-model="current" >
<option v-for="(value,key,index) in history.items" :key="index" :value="key">{{key}} </option>
</select>
</base-input>

<base-button
native-type="submit"
type="primary"
Expand Down Expand Up @@ -148,12 +150,12 @@ export default {
.then(response => {
let data = response.data;
this.history = data
console.log(this.history)
this.processing = false;
})
.catch(error => {
console.log(error);
this.$notify({type: 'warning', message: error.message})
this.processing = false;
});
}
Expand Down
3 changes: 2 additions & 1 deletion src/layout/starter/SamplePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ export default {
this.processing = false;
})
.catch(error => {
console.log(error);
this.$notify({type: 'warning', message: error.message})
console.log(JSON.stringify(error));
this.processing = false;
});
}
Expand Down

0 comments on commit 36ebe6a

Please sign in to comment.