mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-06 21:57:57 +02:00
add save feedback
This commit is contained in:
@@ -241,6 +241,12 @@
|
|||||||
ng-if="error"
|
ng-if="error"
|
||||||
ng-bind="error"
|
ng-bind="error"
|
||||||
></div>
|
></div>
|
||||||
|
<div
|
||||||
|
class="alert alert-success"
|
||||||
|
role="alert"
|
||||||
|
ng-if="message"
|
||||||
|
ng-bind="message"
|
||||||
|
></div>
|
||||||
<button
|
<button
|
||||||
id="save"
|
id="save"
|
||||||
type="submit"
|
type="submit"
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ angular
|
|||||||
$http.post("/api/user/default", params).then(
|
$http.post("/api/user/default", params).then(
|
||||||
() => {
|
() => {
|
||||||
getDefault();
|
getDefault();
|
||||||
|
$scope.message = "Saved"
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
$translate("ERRORS." + error.data.error).then((translation) => {
|
$translate("ERRORS." + error.data.error).then((translation) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user