Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export special view for reuse (#2401)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
haiodo authored and disant1 committed Dec 5, 2022
1 parent 7bcd725 commit 534eb49
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/workbench-resources/src/components/SpecialView.svelte
Original file line number Diff line number Diff line change
@@ -26,7 +26,8 @@
export let label: IntlString
export let createLabel: IntlString | undefined
export let createComponent: AnyComponent | undefined
export let descriptor: Ref<ViewletDescriptor> | undefined
export let createComponentProps: Record<string, any> = {}
export let descriptor: Ref<ViewletDescriptor> | undefined = undefined
export let baseQuery: DocumentQuery<Doc> = {}
let search = ''
@@ -68,7 +69,7 @@
function showCreateDialog (ev: MouseEvent) {
if (createComponent === undefined) return
showPopup(createComponent, {}, 'top')
showPopup(createComponent, createComponentProps, 'top')
}
function updateResultQuery (search: string, baseQuery: DocumentQuery<Doc> = {}): DocumentQuery<Doc> {
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
</script>

<!-- svelte-ignore a11y-mouse-events-have-key-events -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="antiNav-element"
class:selected
1 change: 1 addition & 0 deletions plugins/workbench-resources/src/index.ts
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@ function hasArchiveSpaces (spaces: Space[]): boolean {
export { default as SpaceBrowser } from './components/SpaceBrowser.svelte'
export { default as TreeNode } from './components/navigator/TreeNode.svelte'
export { default as SpecialElement } from './components/navigator/SpecialElement.svelte'
export { SpecialView }
export default async (): Promise<Resources> => ({
component: {
WorkbenchApp,

0 comments on commit 534eb49

Please sign in to comment.