pull/604/head
hunterlong 2020-05-21 05:04:45 -07:00
parent bfd173d7d7
commit ad03ef545d
4 changed files with 16 additions and 13 deletions

View File

@ -1,3 +1,6 @@
# 0.90.43 (05-21-2020)
- Fixed service form loading
# 0.90.42 (05-20-2020) # 0.90.42 (05-20-2020)
- Fixed TCP services that dont use TLS. - Fixed TCP services that dont use TLS.

View File

@ -271,9 +271,9 @@
notify_after: 2, notify_after: 2,
public: true, public: true,
use_tls: false, use_tls: false,
tls_cert: "", tls_cert: "",
tls_cert_key: "", tls_cert_key: "",
tls_cert_root: "", tls_cert_root: "",
}, },
groups: [], groups: [],
} }
@ -284,11 +284,10 @@
} }
}, },
watch: { watch: {
in_service () { in_service: function(n, o) {
this.service = this.in_service if (this.service.tls_cert) {
if (this.service.tls_cert) { this.service.use_tls = true
this.service.use_tls = true }
}
} }
}, },
async mounted () { async mounted () {
@ -296,8 +295,9 @@
const groups = await Api.groups() const groups = await Api.groups()
this.$store.commit('setGroups', groups) this.$store.commit('setGroups', groups)
} }
this.service = this.in_service
}, },
methods: { methods: {
updatePermalink() { updatePermalink() {
const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;' const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;'
const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------' const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------'

View File

@ -399,10 +399,10 @@ func TestServices(t *testing.T) {
item, err := Find(1) item, err := Find(1)
require.Nil(t, err) require.Nil(t, err)
count := item.HitsSince(utils.Now().Add(-30 * time.Second)) count := item.HitsSince(utils.Now().Add(-60 * time.Second))
assert.Equal(t, 1, count.Count()) assert.Equal(t, 1, count.Count())
count = item.HitsSince(utils.Now().Add(-180 * time.Second)) count = item.HitsSince(utils.Now().Add(-360 * time.Second))
assert.Equal(t, 3, count.Count()) assert.Equal(t, 3, count.Count())
}) })
@ -432,7 +432,7 @@ func TestServices(t *testing.T) {
item, err := Find(1) item, err := Find(1)
require.Nil(t, err) require.Nil(t, err)
count := item.FailuresSince(utils.Now().Add(-6 * time.Second)) count := item.FailuresSince(utils.Now().Add(-30 * time.Second))
assert.Equal(t, 1, count.Count()) assert.Equal(t, 1, count.Count())
count = item.FailuresSince(utils.Now().Add(-180 * time.Second)) count = item.FailuresSince(utils.Now().Add(-180 * time.Second))

View File

@ -1 +1 @@
0.90.42 0.90.43