Remove unused 'progress' parameter from the AttachmentPresenter (#7644)

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
This commit is contained in:
Denis Tingaikin 2025-01-12 07:28:03 +03:00 committed by GitHub
parent dc9240218f
commit d1e3bfb2b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 16 deletions

View File

@ -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()

View File

@ -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) {

View File

@ -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) {

View File

@ -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}