Avaiga / taipy

Turns Data and AI algorithms into production-ready web applications in no time.
https://www.taipy.io
Apache License 2.0
15.24k stars 1.84k forks source link

Job Selector - No possiblity to delete or cancel multiple jobs #319

Closed FlorianJacta closed 1 year ago

FlorianJacta commented 1 year ago

Issue

The button to delete or cancel multiple jobs is not clickable.

image

How to replicate

Run this code, create a scenario, execute it, and try to use the button to delete jobs.

from taipy import Config

import taipy as tp
import pandas as pd

def identity(input):
    print("     Identity")
    return input

## Input Data Nodes
input_cfg = Config.configure_data_node(id="input", default_data=2)

## Remaining Data Node
output_cfg = Config.configure_data_node(id="output")

# Task config objects
identity_task_cfg = Config.configure_task(id="identity",
                                            function=identity,
                                            input=input_cfg,
                                            output=output_cfg,
                                            skippable=True)

# Configure our scenario config.
scenario_cfg = Config.configure_scenario(id="my_scenario", task_configs=[identity_task_cfg])

jobs = []
scenario = None

page = """
<|{scenario}|scenario_selector|>
<|{scenario}|scenario|>

<|{jobs}|job_selector|>
"""

pages = {'/':'<|navbar|> <|toggle|theme|> <br/>',
         'Data-Node': page}

if __name__ == "__main__":
    tp.Core().run()

    tp.Gui(pages=pages).run()

Expected behavior

These buttons should be clickable and should delete or cancel the selected jobs. If not possible, Taipy should better indicate why these buttons are not clickable.

Environment

Taipy 3.0.0.dev3

FredLL-Avaiga commented 1 year ago

How many jobs did you select ?

FlorianJacta commented 1 year ago

Here one but the same goes for 1, 2, ...