diff options
author | Nick Isaacs <nick@endlessm.com> | 2013-08-15 14:40:09 -0700 |
---|---|---|
committer | Nick Isaacs <nick@endlessm.com> | 2013-08-21 14:29:05 -0700 |
commit | 34deb37e1a26cb8817bf86ddf23d3600285a4292 (patch) | |
tree | f827b8ab8735baea17ffd0d207375baad5f1be79 /wikipedia/models | |
parent | 973b40e1962fa462bc3d477ca2c6ef10588c8d24 (diff) |
Can add articles to the main category.
If there are articles for an app's main category, then it becomes clickable and acts like any other category.
If there are no articles for a category, it isn't cilckable and has no hover animations.
We no longer use the Title Label View since the main category is now a category button like any other.
[endlessm/eos-sdk#259]
Diffstat (limited to 'wikipedia/models')
-rw-r--r-- | wikipedia/models/category_model.js | 3 | ||||
-rw-r--r-- | wikipedia/models/domain_wiki_model.js | 14 |
2 files changed, 3 insertions, 14 deletions
diff --git a/wikipedia/models/category_model.js b/wikipedia/models/category_model.js index 1c981bc..8a1c1ff 100644 --- a/wikipedia/models/category_model.js +++ b/wikipedia/models/category_model.js @@ -21,6 +21,9 @@ const CategoryModel = new Lang.Class({ 'image-thumbnail-uri': GObject.ParamSpec.string('image-thumbnail-uri', 'Category Thumbnail Image URI', 'Path to thumbnail image for this category in the GResource', GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE | GObject.ParamFlags.CONSTRUCT, ""), + 'is-main-category': GObject.ParamSpec.boolean('is-main-category', 'Is Main Category boolean', 'Flag denoting whether this category is the main category for this app', + GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE | GObject.ParamFlags.CONSTRUCT, + false), }, _init: function(params) { diff --git a/wikipedia/models/domain_wiki_model.js b/wikipedia/models/domain_wiki_model.js index 87941ba..a387ff9 100644 --- a/wikipedia/models/domain_wiki_model.js +++ b/wikipedia/models/domain_wiki_model.js @@ -12,20 +12,6 @@ const DomainWikiModel = new Lang.Class({ Name: "DomainWikiModel", Extends: GObject.Object, - Properties: { - 'image-uri': GObject.ParamSpec.string('image-uri', - 'Application image URI', - 'URI describing a path to the image for this application.', - GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE | GObject.ParamFlags.CONSTRUCT_ONLY, - ''), - - // Name of the Wikipedia-based application, e.g. 'Brazil', 'Math' - 'application-name': GObject.ParamSpec.string('application-name', - 'Application name', - 'Name of the Wikipedia-based application', - GObject.ParamFlags.READABLE, - '') - }, //params should have the image-uri for the app's image, and the application name. _init: function(params) { |