mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
refactor: Fix builder/instances.py
This commit is contained in:
parent
5ae6b09dd2
commit
f94aaba4f6
1 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
|||
from .utils.widgets import instance_widget
|
||||
|
||||
from typing import List
|
||||
|
||||
# from src.instance import Instance
|
||||
|
||||
|
||||
def instances_builder(instances: List[Instance]) -> str:
|
||||
"""
|
||||
|
|
@ -9,8 +13,8 @@ def instances_builder(instances: List[Instance]) -> str:
|
|||
|
||||
for instance in instances:
|
||||
# setup actions buttons
|
||||
actions = ["reload", "stop"] if instance.status == "up" else ["start"]
|
||||
|
||||
actions = ["reload", "stop"] if instance.status == "up" else ["start"]
|
||||
|
||||
buttons = [
|
||||
{
|
||||
"attrs": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue