From a8e97144c832e355de7f8177ce38644119248e87 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 21 May 2012 09:30:24 -0700 Subject: Style sheets view - Fixed drawing of toolbar and "no sheets" message --- .../style-sheets-view.reel/style-sheets-view.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html') diff --git a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html index bbefc69b..3e15f50b 100644 --- a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html +++ b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html @@ -14,6 +14,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot "prototype" : "js/panels/css-panel/style-sheets-view.reel", "properties" : { "element" : {"#" : "style-sheets-view-container"}, + "toolbar" : {"@": "toolbar"}, "styleSheetList" : {"@" : "styleSheetList"} } }, @@ -47,29 +48,30 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot } } }, - "noDocumentCondition": { + "documentLoaded": { "prototype": "montage/ui/condition.reel", "properties": { - "element": {"#": "no-document-message" } + "element": {"#": "style-sheets-toolbar-container" }, + "removalStrategy": "hide" }, "bindings": { "condition": { "boundObject": {"@": "owner" }, - "boundObjectPropertyPath": "styleSheets.count()", - "boundValueMutator": {"->": {"arguments": ["val"], "body": "return !val;"}}, + "boundObjectPropertyPath": "documentLoaded", "oneway": true } } }, - "showToolbarCondition": { + "hasSheets": { "prototype": "montage/ui/condition.reel", "properties": { - "element": {"#": "style-sheets-toolbar-container" } + "element": {"#": "no-sheets-message" } }, "bindings" : { "condition": { "boundObject": {"@": "owner"}, "boundObjectPropertyPath": "styleSheets.count()", + "boundValueMutator": {"->": {"arguments": ["val"], "body": "return !val;"}}, "oneway": true } } @@ -113,7 +115,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
-

No style sheets to display.

+

No style sheets to display.

-- cgit v1.2.3