diff --git a/front/admin.html b/front/admin.html index 44934f5..b967fe7 100644 --- a/front/admin.html +++ b/front/admin.html @@ -6,7 +6,8 @@

Use this console to edit network-connected devices.

Peers

- +

Loading...

+
@@ -19,7 +20,8 @@

Add peer

To add a new peer, type in a hostname and select a user. The hostname must be 3-10 lowercase letters and numbers /[a-z0-9]{3,10}/.

-
+

Loading...

+
@@ -28,7 +30,8 @@

Add user

To add a new user, type in the user's first device name and a username and click 'add'. The hostname and username must each be 3-10 lowercase letters and numbers /[a-z0-9]{3,10}/.

-
+

Loading...

+
@@ -37,7 +40,8 @@

Delete User

To delete a user, select the username from the list below and click 'Delete'. This will delete the user and all their peers.

-
+

Loading...

+
diff --git a/front/admin.js b/front/admin.js index 0a6b8c4..ba94307 100644 --- a/front/admin.js +++ b/front/admin.js @@ -33,6 +33,7 @@ function PeerList() { self.isDeletingUser = ko.observable(false) self.deleteUserText = ko.computed(() => self.isDeletingUser()?'Deleting...':'Delete') self.token = ko.observable('') + self.isLoaded = ko.observable(false) // Initial loading self.getUsers = async () => { @@ -67,6 +68,7 @@ function PeerList() { })).map(i=>[i['number'],i]) ).values()]) self.token(user.token) + self.isLoaded(true) } }
HostIPv4