Skip to content

Commit

Permalink
webui: adjust http requests in client module views
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Apr 17, 2023
1 parent c779a09 commit 3e82d85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions webui/module/Client/view/client/client/details.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ $this->headTitle($title);
locale: '<?php echo str_replace('_','-', $_SESSION['bareos']['locale']); ?>',
cookie: <?php echo $_SESSION['bareos']['dt_statesave']; ?>,
cookieIdTable: 'dashboard_table_jobs_last_status',
url: '<?php echo $this->url('client', array('action' => 'getData'), null) . '?data=details&client='.$this->client; ?>',
url: '<?php echo $this->url('api/client', array(), array()) . '?client='.$this->client; ?>',
method: 'get',
dataType: 'json',
columns: [
Expand Down Expand Up @@ -223,7 +223,7 @@ $this->headTitle($title);
locale: '<?php echo str_replace('_','-', $_SESSION['bareos']['locale']); ?>',
cookie: <?php echo $_SESSION['bareos']['dt_statesave']; ?>,
cookieIdTable: 'client_clientbackups',
url: '<?php echo $this->url('client', array('action' => 'getData'), null) . '?data=jobs&client='.$this->client; ?>',
url: '<?php echo $this->url('api/job', array(), array()) . '?client='.$this->client; ?>',
method: 'get',
dataType: 'json',
pagination : true,
Expand Down
2 changes: 1 addition & 1 deletion webui/module/Client/view/client/client/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ $this->headTitle($title);
locale: '<?php echo str_replace('_','-', $_SESSION['bareos']['locale']); ?>',
cookie: <?php echo $_SESSION['bareos']['dt_statesave']; ?>,
cookieIdTable: 'client_clients',
url: '<?php echo $this->url('client', array('action' => 'getData'), null) . '?data=all'; ?>',
url: '<?php echo $this->url('api/client', array(), array()); ?>',
method: 'get',
dataType: 'json',
pagination : true,
Expand Down
4 changes: 2 additions & 2 deletions webui/module/Client/view/client/client/timeline.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ elseif (!$this->acl_alert) : ?>
data: []
}]);

let url = "<?php echo $this->url('client', array('action' => 'getData'), null) . '?data=client-timeline&clients=" + s + "&period='; ?>" + p;
let url = "<?php echo $this->url('api/timeline', array(), array()) . '?module=client&clients=" + s + "&period='; ?>" + p;

$.getJSON(url, function(response) {
if (response.length === 0) {
Expand Down Expand Up @@ -281,7 +281,7 @@ elseif (!$this->acl_alert) : ?>
locale: '<?php echo str_replace('_', '-', $_SESSION['bareos']['locale']); ?>',
cookie: <?php echo $_SESSION['bareos']['dt_statesave']; ?>,
cookieIdTable: 'timeline_clients',
url: '<?php echo $this->url('client', array('action' => 'getData'), null) . '?data=all'; ?>',
url: '<?php echo $this->url('api/client', array(), array()); ?>',
method: 'get',
dataType: 'json',
pagination: false,
Expand Down

0 comments on commit 3e82d85

Please sign in to comment.