Device name added to remote config.

This commit is contained in:
2022-09-07 13:18:42 +01:00
parent ae4cfa334e
commit cdb402cd18
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -40,6 +40,7 @@ var app = new Vue({
this.socket.on("config", (data) => { this.socket.on("config", (data) => {
this.domain = data.domain; this.domain = data.domain;
this.version = data.version; this.version = data.version;
this.device = data.device;
}); });
this.socket.on("fprint-enroll-error", (data) => { this.socket.on("fprint-enroll-error", (data) => {
@@ -151,4 +152,4 @@ var app = new Vue({
}; };
} }
} }
}) })
+2 -2
View File
@@ -24,7 +24,7 @@
<div v-if="step > 0" style="text-align: right"> <div v-if="step > 0" style="text-align: right">
<span style="cursor: pointer;" v-on:click="newEnrolment">+ New <span style="cursor: pointer;" v-on:click="newEnrolment">+ New
Enrolment</span>&nbsp;&nbsp;&bull;&nbsp;&nbsp; Enrolment</span>&nbsp;&nbsp;&bull;&nbsp;&nbsp;
<span>~{{user.username.substring(7)}}</span> &nbsp;&nbsp;&bull;&nbsp;&nbsp; <span v-on:click='logout' <span>~{{user.username.substring(7)}}</span> &nbsp;&nbsp;&bull;&nbsp;&nbsp; <span v-if="device">{{device}} &nbsp;&nbsp;&bull;&nbsp;&nbsp;</span> <span v-on:click='logout'
style="cursor: pointer; font-weight: bold;">Logout</span> style="cursor: pointer; font-weight: bold;">Logout</span>
<hr /> <hr />
</div> </div>
@@ -174,4 +174,4 @@
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="/assets/app.js"></script> <script src="/assets/app.js"></script>
</body> </body>
</html> </html>