mirror of https://github.com/statping/statping
				
				
				
			fixed webhook notifier
							parent
							
								
									a0b955f543
								
							
						
					
					
						commit
						87c4052e44
					
				| 
						 | 
				
			
			@ -90,7 +90,7 @@ $('.toggle-service').on('click',function(e) {
 | 
			
		|||
	let obj = $(this);
 | 
			
		||||
	let serviceId = obj.attr("data-id");
 | 
			
		||||
	let online = obj.attr("data-online");
 | 
			
		||||
	let d = confirm("Do you want to stop this service?");
 | 
			
		||||
	let d = confirm("Do you want to "+online ? "stop" : "start"+" checking this service?");
 | 
			
		||||
	if (d) {
 | 
			
		||||
		$.ajax({
 | 
			
		||||
			url: "/api/services/" + serviceId + "/running",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
// Code generated by go generate; DO NOT EDIT.
 | 
			
		||||
// This file was generated by robots at
 | 
			
		||||
// 2019-04-30 13:59:21.61947 -0700 PDT m=+0.470438006
 | 
			
		||||
// 2019-05-02 12:28:04.3183 -0700 PDT m=+0.492328981
 | 
			
		||||
//
 | 
			
		||||
// This contains the most recently Markdown source for the Statping Wiki.
 | 
			
		||||
package source
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -85,6 +85,9 @@ func ToInt(s interface{}) int64 {
 | 
			
		|||
// Input:   {"name": "%service.Name", "domain": "%service.Domain"}
 | 
			
		||||
// Output:  {"name": "Google DNS", "domain": "8.8.8.8"}
 | 
			
		||||
func ConvertInterface(in string, obj interface{}) string {
 | 
			
		||||
	if reflect.ValueOf(obj).IsNil() {
 | 
			
		||||
		return in
 | 
			
		||||
	}
 | 
			
		||||
	s := reflect.ValueOf(obj).Elem()
 | 
			
		||||
	typeOfT := s.Type()
 | 
			
		||||
	for i := 0; i < s.NumField(); i++ {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue