Release govoplan-datasources v0.1.25: unify interface contracts and documentation
This commit is contained in:
@@ -315,6 +315,21 @@ export default function DatasourcesPage({
|
||||
|
||||
return (
|
||||
<WorkspaceFrame as="main" height="viewport" surface="plain" className="datasources-page" label="Datasource workspace">
|
||||
<WorkspaceActionBar
|
||||
scope="workspace"
|
||||
variant="collection"
|
||||
refreshable
|
||||
reloadAction={{ onReload: () => void reload(selectedDatasourceRef), loading: loading || working }}
|
||||
contextActions={<strong>Data</strong>}
|
||||
createAction={<IconButton
|
||||
label="Add datasource or stage"
|
||||
icon={<Plus size={17} />}
|
||||
variant="primary"
|
||||
onClick={() => setAddOpen(true)}
|
||||
disabled={!canStage && !canManage}
|
||||
disabledReason={!canStage && !canManage ? DATASOURCES_I18N.manageReason : undefined}
|
||||
/>}
|
||||
/>
|
||||
<WorkspaceLayout
|
||||
variant="split"
|
||||
primarySize="compact"
|
||||
@@ -325,21 +340,6 @@ export default function DatasourcesPage({
|
||||
contentLabel="Datasource workspace"
|
||||
contentClassName="datasources-workspace"
|
||||
primary={<>
|
||||
<WorkspaceActionBar
|
||||
scope="collection-pane"
|
||||
variant="collection"
|
||||
refreshable
|
||||
reloadAction={{ onReload: () => void reload(selectedDatasourceRef), loading: loading || working }}
|
||||
contextActions={<strong>Data</strong>}
|
||||
createAction={<IconButton
|
||||
label="Add datasource or stage"
|
||||
icon={<Plus size={17} />}
|
||||
variant="primary"
|
||||
onClick={() => setAddOpen(true)}
|
||||
disabled={!canStage && !canManage}
|
||||
disabledReason={!canStage && !canManage ? DATASOURCES_I18N.manageReason : undefined}
|
||||
/>}
|
||||
/>
|
||||
<div className="datasources-view-switch">
|
||||
<SegmentedControl<CatalogueView>
|
||||
ariaLabel="Datasource view"
|
||||
|
||||
Reference in New Issue
Block a user