Better, but not yet 100% working clusters, now with structure name.

This commit is contained in:
2020-02-02 22:04:02 +01:00
parent be90c9dc89
commit 3844c7025b
7 changed files with 101 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
from export import export_to_xml
from model.example_clusters import ExampleClusters
from browser import window
from lib.snabbdom import h
import message
@@ -12,7 +13,7 @@ def show_toggle_cluster_buttons(sense, example):
base_tag = "input.cluster-list-button"
result = []
for opt in sense.example_clusters():
for opt in ExampleClusters.get_list(sense, example):
tag = base_tag
if opt == cls:
tag += ".cluster-button-checked"

View File

@@ -19,6 +19,8 @@ class View:
def view(self, model):
self.model = model
self.model.pre_view()
new_vdom = self._view()
patch(self.vdom, new_vdom)
self.vdom = new_vdom