Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: default action for resume/pause/delete button #1607

Open
1 task
flashlab opened this issue Mar 25, 2024 · 0 comments
Open
1 task

[Feature Request]: default action for resume/pause/delete button #1607

flashlab opened this issue Mar 25, 2024 · 0 comments

Comments

@flashlab
Copy link
Contributor

Description

refer to #1598

Describe the solution you'd like

User can control the behaviour of RESUME/PAUSE/DELETE button if none torrent item selected:

  • perform on ALL torrents (api defined)
  • only on the current table list (filtered torrents)
  • no action (default)

Describe alternatives you've considered

  1. Change the default ALL action. As in most cases, users maynot want to touch all torrents if hashes variable is empty occasionally.

    hashes: hashes.length ? hashes.join('|') : 'all',

    id: hashes.length ? hashes.join('|') : 'all',

    id: hashes.length ? hashes.join('|') : 'all',

  2. Hard code the hashes compute value to force table list scope, but currently didn't work :(

    const hashes = computed(() => (isOnTorrentDetail.value ? [route.params.hash as string] : dashboardStore.selectedTorrents))

const hashes = computed(() => (isOnTorrentDetail.value ? [route.params.hash as string] :
  (dashboardStore.selectedTorrents.length ? dashboardStore.selectedTorrents :
    [...torrentStore.filteredTorrents.map(t => t.hash)]
  )
))

Complementary informations

  • Is this feature already implemented in the default WebUI?
@flashlab flashlab added Feature New Feature triage Issue hasn't been assessed yet labels Mar 25, 2024
@Larsluph Larsluph added Torrent Management and removed triage Issue hasn't been assessed yet labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants