Skip to content

Commit

Permalink
Show warning message after requesting display applications
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 13, 2018
1 parent 5b677cf commit e3ef379
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div v-if="messageVisible" :class="messageClass">
{{ messageText }}
</div>
<div v-if="!applicationsVisible" class="alert alert-warning">
<div v-if="!applicationsVisible && applicationsLoaded" class="alert alert-warning">
No display applications available.
</div>
<div v-if="applicationsVisible" class="card-header">
Expand Down Expand Up @@ -37,6 +37,7 @@ export default {
data() {
return {
applications: [],
applicationsLoaded: false,
applicationsAttributes: [
{ key: 'reload' },
{ key: 'name', sortable: true },
Expand Down Expand Up @@ -80,6 +81,7 @@ export default {
.get(url)
.then(response => {
this.applications = response.data;
this.applicationsLoaded = true;
})
.catch(e => {
this._errorMessage(e);
Expand Down

0 comments on commit e3ef379

Please sign in to comment.