mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: disabled button in list component.
This commit is contained in:
@@ -19,7 +19,6 @@ import { CLASSES } from 'common/classes';
|
||||
import {
|
||||
NormalCell,
|
||||
BalanceCell,
|
||||
AccountNameAccessor
|
||||
} from './components';
|
||||
|
||||
import withDashboardActions from 'containers/Dashboard/withDashboardActions';
|
||||
@@ -136,7 +135,7 @@ function AccountsDataTable({
|
||||
{
|
||||
id: 'name',
|
||||
Header: formatMessage({ id: 'account_name' }),
|
||||
accessor: AccountNameAccessor,
|
||||
accessor: 'name',
|
||||
className: 'account_name',
|
||||
width: 220,
|
||||
},
|
||||
|
||||
@@ -54,31 +54,3 @@ export function InactiveSemafro() {
|
||||
</Tooltip>
|
||||
);
|
||||
}
|
||||
|
||||
export function AccountNameAccessor(row) {
|
||||
return (
|
||||
<>
|
||||
<Choose>
|
||||
<Choose.When condition={!!row.description}>
|
||||
<Tooltip
|
||||
className={classNames(
|
||||
Classes.TOOLTIP_INDICATOR,
|
||||
'bp3-popover-wrapper--account-desc',
|
||||
)}
|
||||
content={row.description}
|
||||
position={Position.RIGHT_TOP}
|
||||
hoverOpenDelay={500}
|
||||
>
|
||||
{row.name}
|
||||
</Tooltip>
|
||||
</Choose.When>
|
||||
|
||||
<Choose.Otherwise>{row.name}</Choose.Otherwise>
|
||||
</Choose>
|
||||
|
||||
<If condition={!row.active}>
|
||||
<InactiveSemafro />
|
||||
</If>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,6 +20,15 @@ $sidebar-zindex: 15;
|
||||
$pt-font-family: Noto Sans, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
|
||||
Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue, Icons16, sans-serif;
|
||||
|
||||
$button-box-shadow: 0 0 0 !default;
|
||||
$button-box-shadow-active: 0 0 0 !default;
|
||||
$button-intent-box-shadow: 0 0 0 !default;
|
||||
$button-intent-box-shadow-active: 0 0 0 !default;
|
||||
|
||||
$button-background-color-disabled: #E9ECEF !default;
|
||||
$button-background-color: #E6EFFB !default;
|
||||
$button-background-color-hover: #CFDCEE !default;
|
||||
|
||||
// Blueprint framework.
|
||||
@import '@blueprintjs/core/src/blueprint.scss';
|
||||
@import '@blueprintjs/datetime/src/blueprint-datetime.scss';
|
||||
@@ -114,6 +123,8 @@ body.authentication {
|
||||
}
|
||||
|
||||
.select-list--fill-popover {
|
||||
position: relative;
|
||||
|
||||
.bp3-transition-container,
|
||||
.bp3-popover {
|
||||
min-width: 100%;
|
||||
@@ -245,7 +256,7 @@ body.authentication {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.table {
|
||||
border: 1px dotted rgb(195, 195, 195);
|
||||
border: 1px solid #d2dce2;
|
||||
border-bottom: transparent;
|
||||
border-left: transparent;
|
||||
|
||||
@@ -261,6 +272,10 @@ body.authentication {
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child{
|
||||
border-left: 1px solid #d2dce2;
|
||||
}
|
||||
}
|
||||
|
||||
.thead {
|
||||
|
||||
@@ -30,30 +30,27 @@
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
|
||||
.bp3-button:not([class*="bp3-intent-"]):not(.bp3-minimal){
|
||||
background-color: #E6EFFB;
|
||||
color: #555555;
|
||||
box-shadow: 0 0 0 transparent;
|
||||
|
||||
&:hover,
|
||||
&:focus{
|
||||
background-color: #CFDCEE;
|
||||
}
|
||||
|
||||
&.bp3-small{
|
||||
font-size: 13px;
|
||||
min-height: 29px;
|
||||
}
|
||||
|
||||
.form-group--select-list &{
|
||||
border-radius: 2px;
|
||||
|
||||
&,
|
||||
&:hover{
|
||||
background: #fff;
|
||||
box-shadow: 0 0 0 transparent;
|
||||
border: 1px solid #ced4da;
|
||||
}
|
||||
|
||||
&:not(:disabled) {
|
||||
background: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
.form-group--select-list.bp3-intent-danger &{
|
||||
|
||||
|
||||
@@ -48,6 +48,11 @@ label.bp3-label{
|
||||
box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
|
||||
border-color: #80bdff;
|
||||
}
|
||||
|
||||
&.bp3-disabled,
|
||||
&:disabled{
|
||||
background: #e9ecef;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$ns}-form-group{
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.table {
|
||||
border: 1px dotted rgb(195, 195, 195);
|
||||
border: 1px solid #d2dce2;
|
||||
border-bottom: transparent;
|
||||
border-left: transparent;
|
||||
|
||||
@@ -74,6 +74,10 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child{
|
||||
border-left: 1px solid #d2dce2;
|
||||
}
|
||||
}
|
||||
|
||||
.thead {
|
||||
|
||||
Reference in New Issue
Block a user