on xenial help sign in
quickPreviewType -> quick-preview-type
commit2b56da2943ec312a6de9ac79720be05fc922dd18 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 3 Jun 2015, 13:45 (11 years ago) parentf8c788c
3 files changed+3−3
plugins/Dash/CardCreator.js+1−1 tests/plugins/Dash/cardcreator/8.tst+1−1 tests/qmltests/Dash/tst_Card.qml+1−1
plugins/Dash/CardCreator.js+1−1
@@ -396,7 +396,7 @@ function cardString(template, components) {
396396 var hasSubtitle = hasTitle && components["subtitle"] || false;
397397 var hasHeaderRow = hasMascot && hasTitle;
398398 var hasAttributes = hasTitle && components["attributes"] && components["attributes"]["field"] || false;
399− var isAudio = template["quickPreviewType"] === "audio";
399+ var isAudio = template["quick-preview-type"] === "audio";
400400
401401 if (isAudio) {
402402 // For now we only support audio cards with [optional] art, title, subtitle
tests/plugins/Dash/cardcreator/8.tst+1−1
@@ -1,3 +1,3 @@
1−template: {"card-layout":"horizontal","card-size":"medium","category-layout":"grid","collapsed-rows":2,"quickPreviewType": "audio"}
1+template: {"card-layout":"horizontal","card-size":"medium","category-layout":"grid","collapsed-rows":2,"quick-preview-type": "audio"}
22components: {"art":{"aspect-ratio":1},"subtitle":{"field":"author"},"title":{"field":"title"}, "quickPreviewData": "quickPreviewData"}
33result: 8.res
tests/qmltests/Dash/tst_Card.qml+1−1
@@ -109,7 +109,7 @@ Rectangle {
109109 },
110110 {
111111 "name": "Art, title, subtitle - Audio",
112− "layout": { "template": { "card-layout": "horizontal", "quickPreviewType": "audio" },
112+ "layout": { "template": { "card-layout": "horizontal", "quick-preview-type": "audio" },
113113 "components": { "art": "art", "title": "title", "subtitle": "subtitle", "quickPreviewData": "quickPreviewData" } }
114114 },
115115 ]