Compare commits
No commits in common. "01be1ab29aba2355a66b07acdd8bc22c2662c800" and "8a0bc22124484836bf09e4e1d67d048971b41e7d" have entirely different histories.
01be1ab29a
...
8a0bc22124
@ -44,8 +44,6 @@ import {
|
|||||||
getSidebarMenuSections
|
getSidebarMenuSections
|
||||||
} from '../../../database/Sidebars'
|
} from '../../../database/Sidebars'
|
||||||
|
|
||||||
import { useAppUpdateContext } from '../context/AppUpdateContext'
|
|
||||||
|
|
||||||
const { Text } = Typography
|
const { Text } = Typography
|
||||||
|
|
||||||
const DashboardNavigation = () => {
|
const DashboardNavigation = () => {
|
||||||
@ -66,7 +64,7 @@ const DashboardNavigation = () => {
|
|||||||
const isMobile = useMediaQuery({ maxWidth: 768 })
|
const isMobile = useMediaQuery({ maxWidth: 768 })
|
||||||
const { platform, isElectron, isFullScreen, setSidebarViewMenu } =
|
const { platform, isElectron, isFullScreen, setSidebarViewMenu } =
|
||||||
useContext(ElectronContext)
|
useContext(ElectronContext)
|
||||||
const { availableUpdate, checkForUpdates } = useAppUpdateContext()
|
|
||||||
const mainMenuItems = useMemo(
|
const mainMenuItems = useMemo(
|
||||||
() => [
|
() => [
|
||||||
{
|
{
|
||||||
@ -316,16 +314,6 @@ const DashboardNavigation = () => {
|
|||||||
</Popover>
|
</Popover>
|
||||||
</Space>
|
</Space>
|
||||||
) : null}
|
) : null}
|
||||||
{isElectron && availableUpdate ? (
|
|
||||||
<Tag
|
|
||||||
icon={<CloudIcon />}
|
|
||||||
style={{ cursor: 'pointer', margin: '2px 0 0 0' }}
|
|
||||||
color='cyan'
|
|
||||||
onClick={() => checkForUpdates()}
|
|
||||||
>
|
|
||||||
Update Available
|
|
||||||
</Tag>
|
|
||||||
) : null}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
{isOtherApp ? <DashboardWindowButtons /> : null}
|
{isOtherApp ? <DashboardWindowButtons /> : null}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
@ -461,7 +461,7 @@ const ObjectChildTable = ({
|
|||||||
rowKey={resolvedRowKey}
|
rowKey={resolvedRowKey}
|
||||||
scroll={scrollConfig}
|
scroll={scrollConfig}
|
||||||
locale={{ emptyText }}
|
locale={{ emptyText }}
|
||||||
bordered={minimal}
|
bordered={true}
|
||||||
style={{ maxWidth: minimal ? '100%' : maxWidth, minWidth: 0 }}
|
style={{ maxWidth: minimal ? '100%' : maxWidth, minWidth: 0 }}
|
||||||
className='rollup-table'
|
className='rollup-table'
|
||||||
/>
|
/>
|
||||||
@ -479,7 +479,7 @@ const ObjectChildTable = ({
|
|||||||
size={size}
|
size={size}
|
||||||
rowKey={resolvedRowKey}
|
rowKey={resolvedRowKey}
|
||||||
scroll={scrollConfig}
|
scroll={scrollConfig}
|
||||||
bordered={minimal}
|
bordered={true}
|
||||||
locale={{ emptyText }}
|
locale={{ emptyText }}
|
||||||
pagination={false}
|
pagination={false}
|
||||||
className={hasRollups ? 'child-table-rollups' : 'child-table'}
|
className={hasRollups ? 'child-table-rollups' : 'child-table'}
|
||||||
|
|||||||
@ -82,8 +82,6 @@ export const AppUpdateProvider = ({ children }) => {
|
|||||||
const runningCheckRef = useRef(null)
|
const runningCheckRef = useRef(null)
|
||||||
const updateCheckDependenciesRef = useRef({})
|
const updateCheckDependenciesRef = useRef({})
|
||||||
|
|
||||||
const [modelWidth, setModelWidth] = useState(650)
|
|
||||||
|
|
||||||
updateCheckDependenciesRef.current = {
|
updateCheckDependenciesRef.current = {
|
||||||
fetchAppUpdateBranches,
|
fetchAppUpdateBranches,
|
||||||
fetchAppUpdateCurrent,
|
fetchAppUpdateCurrent,
|
||||||
@ -193,7 +191,6 @@ export const AppUpdateProvider = ({ children }) => {
|
|||||||
setNoUpdateOpen(false)
|
setNoUpdateOpen(false)
|
||||||
setAvailableUpdate(null)
|
setAvailableUpdate(null)
|
||||||
setInstallingUpdate(update)
|
setInstallingUpdate(update)
|
||||||
setModelWidth(550)
|
|
||||||
setUpdateProgress({
|
setUpdateProgress({
|
||||||
phase: 'preparing',
|
phase: 'preparing',
|
||||||
percent: 0,
|
percent: 0,
|
||||||
@ -259,12 +256,10 @@ export const AppUpdateProvider = ({ children }) => {
|
|||||||
<Text>There are no new software updates available.</Text>
|
<Text>There are no new software updates available.</Text>
|
||||||
</Modal>
|
</Modal>
|
||||||
<Modal
|
<Modal
|
||||||
title={
|
title={installingUpdate ? 'Software Update' : 'Software Update Available'}
|
||||||
installingUpdate ? 'Software Update' : 'Software Update Available'
|
|
||||||
}
|
|
||||||
open={updateModalOpen}
|
open={updateModalOpen}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={modelWidth}
|
width={650}
|
||||||
centered
|
centered
|
||||||
closable={!updateModalBusy}
|
closable={!updateModalBusy}
|
||||||
maskClosable={!updateModalBusy}
|
maskClosable={!updateModalBusy}
|
||||||
|
|||||||
@ -302,14 +302,6 @@ export const Invoice = {
|
|||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
name: 'paidAt',
|
|
||||||
label: 'Paid At',
|
|
||||||
type: 'dateTime',
|
|
||||||
readOnly: true,
|
|
||||||
columnWidth: 175
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'to',
|
name: 'to',
|
||||||
label: 'To',
|
label: 'To',
|
||||||
@ -341,7 +333,13 @@ export const Invoice = {
|
|||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 175
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'paidAt',
|
||||||
|
label: 'Paid At',
|
||||||
|
type: 'dateTime',
|
||||||
|
readOnly: true,
|
||||||
|
columnWidth: 175
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'totalAmountWithTax',
|
name: 'totalAmountWithTax',
|
||||||
label: 'Total Amount w/ Tax',
|
label: 'Total Amount w/ Tax',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user