From d98d56c3b5481e12dc53136c06b6c9c069d40d98 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 19 Jan 2022 11:24:42 +0000 Subject: provide a spinner for edit connection action in threads --- view/tpl/connection_template.tpl | 4 ++-- view/tpl/contact_edit_modal.tpl | 8 ++++---- view/tpl/conv_item.tpl | 3 +++ view/tpl/conv_list.tpl | 3 +++ view/tpl/search_item.tpl | 5 ++++- 5 files changed, 16 insertions(+), 7 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/connection_template.tpl b/view/tpl/connection_template.tpl index a7f0f8759..1c8b4be11 100644 --- a/view/tpl/connection_template.tpl +++ b/view/tpl/connection_template.tpl @@ -8,8 +8,8 @@ {{/if}} {{$contact.role}} diff --git a/view/tpl/contact_edit_modal.tpl b/view/tpl/contact_edit_modal.tpl index a046456d9..9e958c3a9 100644 --- a/view/tpl/contact_edit_modal.tpl +++ b/view/tpl/contact_edit_modal.tpl @@ -104,8 +104,8 @@ function init_contact_edit(poi) { if (!poi) return - $('#edit-rotator-' + poi).addClass('d-inline-block'); - $('#edit-icon-' + poi).hide(); + $('#contact-edit-rotator-' + poi).addClass('d-inline-block'); + $('#contact-edit-icon-' + poi).hide(); $.get('contactedit/' + poi, function(data) { if (!data.success) { $.jGrowl(data.message, {sticky: false, theme: 'notice', life: 10000}); @@ -119,8 +119,8 @@ function activate(data) { $('#contact-save').removeClass('disabled'); $('#contact-tools').removeClass('disabled'); - $('#edit-rotator-' + poi).removeClass('d-inline-block'); - $('#edit-icon-' + poi).show(); + $('#contact-edit-rotator-' + poi).removeClass('d-inline-block'); + $('#contact-edit-icon-' + poi).show(); if (data.title) { $('#edit-modal-title').html(data.title); diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index e9d5e3c63..2d39d0be7 100644 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -35,6 +35,9 @@ {{/if}}
+ {{if $item.contact_id}} +
+ {{/if}} {{$item.name}} {{if $item.author_is_group_actor}} diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index 0463afdcb..30c9e980d 100644 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -29,6 +29,9 @@
+ {{if $item.contact_id}} +
+ {{/if}} {{$item.name}} {{if $item.author_is_group_actor}} diff --git a/view/tpl/search_item.tpl b/view/tpl/search_item.tpl index cb9ad57cc..bcd6af9b2 100644 --- a/view/tpl/search_item.tpl +++ b/view/tpl/search_item.tpl @@ -23,6 +23,9 @@
+ {{if $item.contact_id}} +
+ {{/if}} {{$item.name}} {{if $item.author_is_group_actor}} @@ -31,7 +34,7 @@ {{/if}} -- cgit v1.2.3