add save feedback

This commit is contained in:
tdurieux
2021-04-07 09:24:54 +02:00
parent 78b39d5354
commit 0aaefcdd51
2 changed files with 7 additions and 0 deletions

View File

@@ -241,6 +241,12 @@
ng-if="error"
ng-bind="error"
></div>
<div
class="alert alert-success"
role="alert"
ng-if="message"
ng-bind="message"
></div>
<button
id="save"
type="submit"

View File

@@ -161,6 +161,7 @@ angular
$http.post("/api/user/default", params).then(
() => {
getDefault();
$scope.message = "Saved"
},
(error) => {
$translate("ERRORS." + error.data.error).then((translation) => {