From 060f40c356f56d12a200ccdc27fedf2af0a3ff9d Mon Sep 17 00:00:00 2001 From: Jeswin Date: Tue, 15 Jan 2019 14:08:52 +0530 Subject: [PATCH] settings: Use standard error handling in settings/invites. Changed the error message element from organization-status to an alert-notification block within this page. --- static/js/settings_invites.js | 2 +- static/templates/settings/invites-list-admin.handlebars | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/settings_invites.js b/static/js/settings_invites.js index 04d3b299b0..8cc541ae57 100644 --- a/static/js/settings_invites.js +++ b/static/js/settings_invites.js @@ -12,7 +12,7 @@ exports.reset = function () { function failed_listing_invites(xhr) { loading.destroy_indicator($('#admin_page_invites_loading_indicator')); - ui_report.error(i18n.t("Error listing invites"), xhr, $("#organization-status")); + ui_report.error(i18n.t("Error listing invites"), xhr, $("#invites-field-status")); } exports.invited_as_values = { diff --git a/static/templates/settings/invites-list-admin.handlebars b/static/templates/settings/invites-list-admin.handlebars index 5b5f4a1ad6..c363e7afb3 100644 --- a/static/templates/settings/invites-list-admin.handlebars +++ b/static/templates/settings/invites-list-admin.handlebars @@ -1,6 +1,10 @@
{{t "Invite more users" }} - +
+

{{t "Invites" }}

+ +
+