add refresh to connection edit menu, and notify of communication issues
This commit is contained in:
parent
e03f6cb975
commit
13ec589f80
@ -171,7 +171,8 @@ function connections_content(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($cmd === 'refresh') {
|
if($cmd === 'refresh') {
|
||||||
zot_refresh($orig_record[0],get_app()->get_channel());
|
if(! zot_refresh($orig_record[0],get_app()->get_channel()))
|
||||||
|
notice( t('Refresh failed - channel is currently unavailable.') );
|
||||||
goaway($a->get_baseurl(true) . '/connections/' . $contact_id);
|
goaway($a->get_baseurl(true) . '/connections/' . $contact_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,6 +247,13 @@ function connections_content(&$a) {
|
|||||||
'title' => sprintf( t('View %s\'s profile'), $contact['xchan_name']),
|
'title' => sprintf( t('View %s\'s profile'), $contact['xchan_name']),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
array(
|
||||||
|
'label' => t('Refresh Permissions'),
|
||||||
|
'url' => $a->get_baseurl(true) . '/connections/' . $contact['abook_id'] . '/refresh',
|
||||||
|
'sel' => '',
|
||||||
|
'title' => t('Fetch updated permissions'),
|
||||||
|
),
|
||||||
|
|
||||||
array(
|
array(
|
||||||
'label' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? t('Unblock') : t('Block')),
|
'label' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? t('Unblock') : t('Block')),
|
||||||
'url' => $a->get_baseurl(true) . '/connections/' . $contact['abook_id'] . '/block',
|
'url' => $a->get_baseurl(true) . '/connections/' . $contact['abook_id'] . '/block',
|
||||||
|
Reference in New Issue
Block a user