summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/footer.html2
-rw-r--r--src/templates/settings.html13
-rw-r--r--src/templates/tap.html8
3 files changed, 18 insertions, 5 deletions
diff --git a/src/templates/footer.html b/src/templates/footer.html
index 182554d..4820e68 100644
--- a/src/templates/footer.html
+++ b/src/templates/footer.html
@@ -1,4 +1,4 @@
-<div ng-if="settings.showSettings()">
+<div ng-if="settings.showSettings">
<hr/>
<a href="#/settings">settings</a><br/>
connected = {{mqtt.connected()}}
diff --git a/src/templates/settings.html b/src/templates/settings.html
index f118e47..cca9f22 100644
--- a/src/templates/settings.html
+++ b/src/templates/settings.html
@@ -1,4 +1,4 @@
-<div ng-init="clientId = ctrl.settings.clientId(); showSettings = ctrl.settings.showSettings()">
+<div>
<h2>Settings</h2>
<p>
@@ -8,14 +8,21 @@
<p>
<label>
showSettings
- <input type="checkbox" ng-model="ctrl.showSettings">
+ <input type="checkbox" ng-model="ctrl.settings.showSettings">
</label>
</p>
<p>
<label>
clientId
- <input type="text" ng-model="ctrl.clientId">
+ <input type="text" ng-model="ctrl.settings.clientId">
+ </label>
+ </p>
+
+ <p>
+ <label>
+ TS
+ <input type="text" ng-model="ctrl.settings.tsUrl">
</label>
</p>
diff --git a/src/templates/tap.html b/src/templates/tap.html
index 48d5e37..bf99523 100644
--- a/src/templates/tap.html
+++ b/src/templates/tap.html
@@ -1,5 +1,11 @@
<div>
Last: {{ctrl.message | json}}
- <ng-include src="'templates/footer.html'"/>
+ <ng-include src="'templates/footer.html'"></ng-include>
+
+ <div ng-if="settings.showSettings">
+ Messages:
+ <pre ng-repeat="m in ctrl.messages|limitTo:10">{{m}}</pre>
+ </div>
+
</div>