Mercurial > gemma
changeset 1060:c9badb264d16
client: fix eslint issues.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 25 Oct 2018 20:55:03 +0200 |
parents | 1ff8c072df18 |
children | 3418f3e2c822 |
files | client/src/bottlenecks/Bottlenecks.vue client/src/bottlenecks/store.js |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/bottlenecks/Bottlenecks.vue Thu Oct 25 15:05:20 2018 +0200 +++ b/client/src/bottlenecks/Bottlenecks.vue Thu Oct 25 20:55:03 2018 +0200 @@ -9,7 +9,8 @@ <hr class="mb-0"> <div style="max-height: 500px; overflow-y: scroll"> <table class="table text-left mb-0" style="margin-top: -1px;"> - <tr v-for="(bottleneck, index) in bottlenecks"> + <tr v-for="(bottleneck) in bottlenecks" + :key="bottleneck.name"> <td> <a href="#" class="d-block" @click="moveToBottleneck(bottleneck)"> {{ bottleneck.name }} @@ -104,7 +105,7 @@ .bottlenecksextended { min-height: $sidebar-height; - width: 500px + width: 500px; } .close-bottlenecks { @@ -121,5 +122,4 @@ .bottlenecksextended .close-bottlenecks { display: block; } - </style>
--- a/client/src/bottlenecks/store.js Thu Oct 25 15:05:20 2018 +0200 +++ b/client/src/bottlenecks/store.js Thu Oct 25 20:55:03 2018 +0200 @@ -25,7 +25,7 @@ } }, actions: { - loadBottlenecks({ commit, state }) { + loadBottlenecks({ commit }) { return new Promise((resolve, reject) => { HTTP.get("/bottlenecks", { headers: { "X-Gemma-Auth": localStorage.getItem("token") }