Selaa lähdekoodia

[notebook] Remove result headers on widget type switch

Enrico Berti 10 vuotta sitten
vanhempi
commit
3e88c8839f

+ 8 - 0
desktop/libs/notebook/src/notebook/static/notebook/css/notebook.css

@@ -737,4 +737,12 @@ table.airy tr td {
   padding-right: 10px;
   font-size: 12px;
   font-weight: lighter;
+}
+
+.resultTable th {
+  color: #FFF;
+}
+
+.dataTables_wrapper .resultTable th {
+  color: #333;
 }

+ 2 - 0
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -97,6 +97,7 @@
 
     self.clear = function () {
       self.fetchedOnce(false);
+      self.meta.removeAll();
       self.data.removeAll();
       self.images.removeAll();
       self.logs('');
@@ -197,6 +198,7 @@
       } else {
         self.properties(ko.mapping.fromJS(getDefaultSnippetProperties(newValue)));
       }
+      self.result.clear();
     });
 
     self.variables = ko.observableArray([]);