pull/10/head v0.27.8
Hunter Long 2018-06-29 19:19:19 -07:00
parent 558372b027
commit 6dc81e6849
7 changed files with 15 additions and 10 deletions

View File

@ -18,7 +18,7 @@ services:
env:
global:
- VERSION=0.27.7
- VERSION=0.27.8
- DB_HOST=localhost
- DB_USER=travis
- DB_PASS=

View File

@ -1,6 +1,6 @@
FROM alpine:latest
ENV VERSION=v0.27.7
ENV VERSION=v0.27.8
RUN apk --no-cache add libstdc++ ca-certificates
RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-alpine.tar.gz && \

View File

@ -11,7 +11,7 @@ type index struct {
}
func IndexHandler(w http.ResponseWriter, r *http.Request) {
if core.CoreApp == nil {
if core.CoreApp.Services == nil {
http.Redirect(w, r, "/setup", http.StatusSeeOther)
return
}

View File

@ -11,7 +11,7 @@ import (
)
func SetupHandler(w http.ResponseWriter, r *http.Request) {
if core.CoreApp != nil {
if core.CoreApp.Services != nil {
http.Redirect(w, r, "/", http.StatusSeeOther)
return
}
@ -39,7 +39,7 @@ func SetupHandler(w http.ResponseWriter, r *http.Request) {
}
func ProcessSetupHandler(w http.ResponseWriter, r *http.Request) {
if core.CoreApp != nil {
if core.CoreApp.Services != nil {
http.Redirect(w, r, "/", http.StatusSeeOther)
return
}

View File

@ -6,13 +6,12 @@ $(".service_li").on('click', function() {
});
$(".disable_click").on('click', function() {
$(this).prop("disabled", true);
$(this).text("Loading...");
return true;
$('form').submit(function() {
$(this).find("button[type='submit']").prop('disabled',true);
});
var ranVar = false;
var ranTheme = false;
$('a[data-toggle="pill"]').on('shown.bs.tab', function (e) {

View File

@ -23,3 +23,9 @@ $("#setup_form").submit(function() {
$("#setup_button").text("Creating Statup...");
return true;
});
$('form').submit(function() {
$(this).find("button[type='submit']").prop('disabled',true);
$(this).find("button[type='submit']").text('Loading...');
});

View File

@ -98,7 +98,7 @@
</div>
<button id="setup_button" type="submit" class="btn btn-primary btn-block">Save Settings</button>
<button id="setup_button" type="submit" class="btn btn-primary btn-block disable_click">Save Settings</button>
</div>