Merge branch 'feature/service_retrieve_data' into develop
# Conflicts: # dashboard/app/Http/Controllers/Api/DashboardController.php
This commit is contained in:
@@ -133,6 +133,10 @@
|
||||
</a>
|
||||
@endforeach
|
||||
|
||||
<button type="button" onclick="reloadDataSource()" class="btn btn-sm btn-warning" style="height: 27px; position: absolute; right: 40px; top: 70px;">
|
||||
Refresh Data
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Main Wrapper -->
|
||||
@@ -146,6 +150,17 @@
|
||||
</div>
|
||||
|
||||
@yield('scripts')
|
||||
|
||||
<script>
|
||||
function reloadDataSource() {
|
||||
fetch(`/api/dashboard/reload`)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
location.reload()
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user