settings: Use standard error handling in settings/invites.

Changed the error message element from organization-status to
an alert-notification block within this page.
This commit is contained in:
Jeswin 2019-01-15 14:08:52 +05:30 committed by Tim Abbott
parent 17a5d6c1f7
commit 060f40c356
2 changed files with 6 additions and 2 deletions

View File

@ -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 = {

View File

@ -1,6 +1,10 @@
<div id="admin-invites-list" class="settings-section" data-name="invites-list-admin">
<a class="invite-user-link" href="#invite"><i class="fa fa-plus-circle" aria-hidden="true"></i>{{t "Invite more users" }}</a>
<input type="text" class="search" placeholder="{{t 'Filter invites' }}" aria-label="{{t 'Filter invites' }}"/>
<div>
<h3 class="inline-block">{{t "Invites" }}</h3>
<input type="text" class="search" placeholder="{{t 'Filter invites' }}" aria-label="{{t 'Filter invites' }}"/>
<div class="alert-notification" id="invites-field-status"></div>
</div>
<div class="clear-float"></div>
<div class="progressive-table-wrapper">