ywana-core8 0.0.422 → 0.0.425
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +34 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +34 -18
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +34 -18
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +1 -1
- package/src/site/site.js +4 -1
- package/src/widgets/upload/UploadDialog.js +2 -2
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -35,7 +35,7 @@ export const TablePage = (props) => {
|
|
35
35
|
const timer = useRef(null)
|
36
36
|
const [form, setForm] = useState(selected)
|
37
37
|
|
38
|
-
useEffect(() => {
|
38
|
+
useEffect(async () => {
|
39
39
|
await context.load()
|
40
40
|
if (canQuery) await context.loadQueries(user)
|
41
41
|
setPageContext(context)
|
package/src/site/site.js
CHANGED
@@ -2,6 +2,7 @@ import React, { Children, Fragment, useState, useContext, useEffect } from 'reac
|
|
2
2
|
import { Icon } from '../html/icon'
|
3
3
|
import { Tabs, Tab } from '../html/tab'
|
4
4
|
import { Header } from '../html/header'
|
5
|
+
import { Tooltip } from '../html/tooltip'
|
5
6
|
import { Page } from './page'
|
6
7
|
import { SiteContext } from './siteContext'
|
7
8
|
import './site.css'
|
@@ -230,7 +231,9 @@ const SiteMenu = ({ logo, title, children, min }) => {
|
|
230
231
|
const styleItem = id === page ? 'selected' : ''
|
231
232
|
return (
|
232
233
|
<div className={`site-menu-item ${styleItem}`} key={id} onClick={() => goto(id)}>
|
233
|
-
<
|
234
|
+
<Tooltip text={title}>
|
235
|
+
<Icon key={id} icon={icon} clickable action={() => goto(id)} />
|
236
|
+
</Tooltip>
|
234
237
|
{sideNav === 'max' ? <label>{title}</label> : null}
|
235
238
|
</div>
|
236
239
|
)
|
@@ -6,7 +6,7 @@ import { SiteContext, Dialog } from '../../site';
|
|
6
6
|
/**
|
7
7
|
* Upload Dialog
|
8
8
|
*/
|
9
|
-
export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onClose, children }) => {
|
9
|
+
export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onClose, children, className }) => {
|
10
10
|
|
11
11
|
const site = useContext(SiteContext);
|
12
12
|
|
@@ -33,7 +33,7 @@ export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onC
|
|
33
33
|
|
34
34
|
const title = <Text use="headline6">{label}</Text>
|
35
35
|
return (
|
36
|
-
<Dialog title={title} open={true} onAction={onAction} actions={actions}>
|
36
|
+
<Dialog title={title} open={true} onAction={onAction} actions={actions} className={className}>
|
37
37
|
<Uploader label={label} accept={accept} target={target} onSuccess={success} onComplete={complete} />
|
38
38
|
{children}
|
39
39
|
</Dialog>
|