mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-03 14:19:56 +00:00
Remove unused 'progress' parameter from the AttachmentPresenter (#7644)
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
This commit is contained in:
parent
dc9240218f
commit
d1e3bfb2b0
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
||||
// Copyright © 2021 Hardcore Engineering Inc.
|
||||
// Copyright © 2021, 2025 Hardcore Engineering Inc.
|
||||
//
|
||||
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may
|
||||
@ -35,7 +35,6 @@
|
||||
export let removable: boolean = false
|
||||
export let showPreview = false
|
||||
export let preview = false
|
||||
export let progress: boolean = false
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
// Copyright © 2023 Hardcore Engineering Inc.
|
||||
// Copyright © 2023 2025 Hardcore Engineering Inc.
|
||||
//
|
||||
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may
|
||||
@ -333,7 +333,6 @@
|
||||
{attachments}
|
||||
{readonly}
|
||||
{progress}
|
||||
{progressItems}
|
||||
{useAttachmentPreview}
|
||||
on:remove={async (evt) => {
|
||||
if (evt.detail !== undefined) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
// Copyright © 2022 Hardcore Engineering Inc.
|
||||
// Copyright © 2022, 2025 Hardcore Engineering Inc.
|
||||
//
|
||||
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may
|
||||
@ -440,7 +440,6 @@
|
||||
<AttachmentsGrid
|
||||
attachments={Array.from(attachments.values())}
|
||||
{progress}
|
||||
{progressItems}
|
||||
{useAttachmentPreview}
|
||||
on:remove={async (evt) => {
|
||||
if (evt.detail !== undefined) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
// Copyright © 2023 Hardcore Engineering Inc.
|
||||
// Copyright © 2023, 2025 Hardcore Engineering Inc.
|
||||
//
|
||||
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may
|
||||
@ -14,7 +14,6 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { Attachment } from '@hcengineering/attachment'
|
||||
import { Doc, Ref } from '@hcengineering/core'
|
||||
import { Loading, updatePopup, Scroller } from '@hcengineering/ui'
|
||||
import { ListSelectionProvider } from '@hcengineering/view-resources'
|
||||
import AttachmentPresenter from './AttachmentPresenter.svelte'
|
||||
@ -23,7 +22,6 @@
|
||||
export let attachments: Attachment[] = []
|
||||
export let useAttachmentPreview = false
|
||||
export let progress = false
|
||||
export let progressItems: Ref<Doc>[] = []
|
||||
export let readonly: boolean = false
|
||||
|
||||
let element: HTMLElement
|
||||
@ -54,13 +52,7 @@
|
||||
on:open={(res) => (attachmentPopupId = res.detail)}
|
||||
/>
|
||||
{:else}
|
||||
<AttachmentPresenter
|
||||
value={attachment}
|
||||
removable={!readonly}
|
||||
showPreview
|
||||
progress={progressItems.includes(attachment._id)}
|
||||
on:remove
|
||||
/>
|
||||
<AttachmentPresenter value={attachment} removable={!readonly} showPreview on:remove />
|
||||
{/if}
|
||||
{/each}
|
||||
{#if progress}
|
||||
|
Loading…
Reference in New Issue
Block a user