Dodo-app: fix sync user info bug
disable form after running app installation
Change-Id: I28dec5f8a9ad1d586bc2d2cc56a6c1c66cf2fdbe
diff --git a/core/installer/welcome/dodo-app-tmpl/base.html b/core/installer/welcome/dodo-app-tmpl/base.html
index 9cb4e07..d0e0693 100644
--- a/core/installer/welcome/dodo-app-tmpl/base.html
+++ b/core/installer/welcome/dodo-app-tmpl/base.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ block "title" . }}{{ end }}</title>
<link rel="stylesheet" href="/static/pico.2.0.6.min.css">
- <link rel="stylesheet" href="/static/dodo_app.css?v=0.0.4">
+ <link rel="stylesheet" href="/static/dodo_app.css?v=0.0.7">
</head>
<body class="container">
{{- block "content" . }}
diff --git a/core/installer/welcome/dodo-app-tmpl/index.html b/core/installer/welcome/dodo-app-tmpl/index.html
index 9874d12..fa5ab48 100644
--- a/core/installer/welcome/dodo-app-tmpl/index.html
+++ b/core/installer/welcome/dodo-app-tmpl/index.html
@@ -2,7 +2,7 @@
dodo app: status
{{ end }}
{{- define "content" -}}
-<form action="" method="POST">
+<form id="create-app" action="" method="POST">
<fieldset class="grid">
<select name="network">
{{- range .Networks -}}
@@ -15,7 +15,8 @@
<option value="{{ . }}">{{ . }}</option>
{{- end -}}
</select>
- <button type="submit" name="create-app">Create App</button>
+ <button id="create-app-button" aria-busy="false" type="submit" name="create-app">
+ create app</button>
</fieldset>
</form>
<hr class="divider">
@@ -24,10 +25,11 @@
<ul>
{{- range .Apps -}}
<li>
- <a href="/{{ . }}">{{ . }}</a>
+ <a class="app-info-link" href="/{{ . }}">{{ . }}</a>
</li>
{{- end -}}
</ul>
</nav>
</aside>
+<script src="/static/dodo-app.js?v=0.0.7"></script>
{{- end -}}