Commit 73ba2977 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

Always show the table, it is too empty otherwise

parent d58915bb
......@@ -21,7 +21,7 @@
<div id="app">
<header>
<h1><span class="hidden-xs-only">Cloudron OpenVPN</span></h1>
<h1><span class="hidden-xs-only"><b>Cloudron OpenVPN</b></span></h1>
<el-button id="newDeviceButton" type="success" size="small" v-show="user" @click="createKeyAsk()" icon="el-icon-plus">New Device</el-button>
<el-button id="refreshButton" type="primary" size="small" v-show="user" @click="refresh()" icon="el-icon-refresh">Refresh</el-button>
<el-button id="openSettingsButton" size="small" v-show="user && user.isAdmin" @click="onSettingsOpen()" icon="el-icon-setting">Settings</el-button>
......@@ -65,9 +65,9 @@
</el-form>
</div>
<div class="container" v-show="user">
<h3 style="text-align: right" v-show="entries.length">Connected Clients: {{ connectedClientCount }}</h3>
<el-table :data="entries" style="flex-basis: 100%; width: 100%" empty-text="No Devices" :row-class-name="tableRowClassName"
@row-click="toggleRowExpansion" ref="deviceTable" v-show="entries.length">
<h3 style="text-align: right">Connected Clients: {{ connectedClientCount }}</h3>
<el-table :data="entries" style="flex-basis: 100%; width: 100%" empty-text="-" :row-class-name="tableRowClassName"
@row-click="toggleRowExpansion" ref="deviceTable">
<el-table-column type="expand">
<template slot-scope="props">
<p><b>Status:</b> {{ props.row.connected ? 'connected' : 'disconnected' }}</p>
......
......@@ -1807,7 +1807,7 @@
"find-root": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
"integrity": "sha1-q8/Iunb3CMQql7PWhbfpRQv7nOQ=",
"integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",
"dev": true
},
"find-up": {
......@@ -4473,7 +4473,7 @@
"uid-safe": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz",
"integrity": "sha1-Kz1cckDo/C5Y+Komnl7knAhXvTo=",
"integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==",
"requires": {
"random-bytes": "~1.0.0"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment