Removed datapoint rename confirmation since everything is automatic
This commit is contained in:
parent
7cf2b60803
commit
8fa8bb4c3a
@ -17,10 +17,4 @@ export class UI {
|
||||
break
|
||||
}
|
||||
}
|
||||
check_rename() {
|
||||
let newName = document.querySelector(`input[name="name"]`).value
|
||||
if (newName != this.datapoint.Name)
|
||||
return confirm(`Trigger expressions needs to be manually updated when renaming a datapoint.\nDo you want to rename the datapoint?`)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
{{ block "page_label" . }}{{end}}
|
||||
|
||||
<form id="form-trigger" action="/datapoint/update/{{ .Data.Datapoint.ID }}" method="post" onsubmit="return _ui.check_rename()">
|
||||
<form id="form-trigger" action="/datapoint/update/{{ .Data.Datapoint.ID }}" method="post">
|
||||
<div id="widgets" class="widgets">
|
||||
<div class="label">Group</div>
|
||||
<div><input type="text" name="group" value="{{ .Data.Datapoint.Group }}"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user