Sidebar for dashboard, minor bug fix

This commit is contained in:
navaneeth 2021-05-19 12:10:46 +05:30
parent ad4ddea5cd
commit 6ce367b68e
2 changed files with 26 additions and 2 deletions

View file

@ -2,7 +2,6 @@ class AppsController < ApplicationController
skip_before_action :authenticate_request, only: [:show]
def index
sleep(4)
authorize App
@apps = App.where(organization: @current_user.organization)
.order('created_at desc')

View file

@ -158,7 +158,32 @@ class HomePage extends React.Component {
<div className="row">
<div className="col-3">
<br />
<div className="w-100 mt-4 px-3 card">
{isLoading && (
<div className="p-5">
<center>
<div class="spinner-border text-azure" role="status"></div>
</center>
</div>
)}
{!isLoading && (
<div class="list-group list-group-transparent mb-3">
<a class="list-group-item list-group-item-action d-flex align-items-center active" href="#">
All applications
<small class="text-muted ms-auto">
<span class="badge bg-azure-lt">{meta.count}</span>
</small>
</a>
<a class="list-group-item list-group-item-action d-flex align-items-center" href="#">
+ Folder
</a>
</div>
)}
</div>
</div>
<div className="col-md-9">