Add import button if the feature is installed.

This commit is contained in:
FusionPBX
2021-02-08 11:51:48 -07:00
committed by GitHub
parent 5a5ef08641
commit af73671c32

View File

@@ -124,6 +124,9 @@
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-call_center_queues']." (".$num_rows.")</b></div>\n";
echo " <div class='actions'>\n";
if (permission_exists('call_center_imports')) {
echo button::create(['type'=>'button','label'=>$text['button-import'],'icon'=>$_SESSION['theme']['button_icon_import'],'link'=>PROJECT_PATH.'/app/call_center_imports/call_center_imports.php?type=call_center_queues']);
}
if (permission_exists('call_center_agent_view')) {
echo button::create(['type'=>'button','label'=>$text['button-agents'],'icon'=>'users','link'=>'call_center_agents.php']);
}
@@ -253,4 +256,4 @@
//show the footer
require_once "resources/footer.php";
?>
?>