diff options
author | Kenneth Fullbright <kennyneedsmilky@gmail.com> | 2021-12-28 01:19:37 +0300 |
---|---|---|
committer | Dixsie Wolmers <dixsiew@gmail.com> | 2022-02-04 17:28:46 +0300 |
commit | 410578537f7ca6dd76aa406b440b0a435606c448 (patch) | |
tree | 6a2530310fc5cbfdd70905af6a49e8bf176a4a16 /src/views/SecurityAndAccess/Sessions | |
parent | b86f4152ba832ba92a2607c30037d5f818058120 (diff) | |
download | webui-vue-410578537f7ca6dd76aa406b440b0a435606c448.tar.xz |
Set table busy state on load
- Add busy prop to tables
Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com>
Change-Id: I4416f12967c9a0ad6c8bb782c7d8de5c17fdd195
Diffstat (limited to 'src/views/SecurityAndAccess/Sessions')
-rw-r--r-- | src/views/SecurityAndAccess/Sessions/Sessions.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/views/SecurityAndAccess/Sessions/Sessions.vue b/src/views/SecurityAndAccess/Sessions/Sessions.vue index 9782e7f2..07ee725d 100644 --- a/src/views/SecurityAndAccess/Sessions/Sessions.vue +++ b/src/views/SecurityAndAccess/Sessions/Sessions.vue @@ -36,6 +36,7 @@ hover show-empty sort-by="clientID" + :busy="isBusy" :fields="fields" :items="allConnections" :filter="searchFilter" @@ -158,6 +159,7 @@ export default { }, data() { return { + isBusy: true, fields: [ { key: 'checkbox', @@ -217,9 +219,10 @@ export default { }, created() { this.startLoader(); - this.$store - .dispatch('sessions/getSessionsData') - .finally(() => this.endLoader()); + this.$store.dispatch('sessions/getSessionsData').finally(() => { + this.endLoader(); + this.isBusy = false; + }); }, methods: { onFiltered(filteredItems) { |