Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/code/tools.js
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 44 | function createFavoriteActions(i18n, favoriteModel, favoriteId) { | |||
---|---|---|---|---|---|
48 | 48 | | |||
49 | 49 | | |||
50 | if (favoriteModel.activities === undefined || | 50 | if (favoriteModel.activities === undefined || | ||
51 | favoriteModel.activities.runningActivities.length <= 1) { | 51 | favoriteModel.activities.runningActivities.length <= 1) { | ||
52 | var action = {}; | 52 | var action = {}; | ||
53 | 53 | | |||
54 | if (favoriteModel.isFavorite(favoriteId)) { | 54 | if (favoriteModel.isFavorite(favoriteId)) { | ||
55 | action.text = i18n("Remove from Favorites"); | 55 | action.text = i18n("Remove from Favorites"); | ||
56 | action.icon = "list-remove"; | 56 | action.icon = "bookmark-remove"; | ||
57 | action.actionId = "_kicker_favorite_remove"; | 57 | action.actionId = "_kicker_favorite_remove"; | ||
58 | } else if (favoriteModel.maxFavorites == -1 || favoriteModel.count < favoriteModel.maxFavorites) { | 58 | } else if (favoriteModel.maxFavorites == -1 || favoriteModel.count < favoriteModel.maxFavorites) { | ||
59 | action.text = i18n("Add to Favorites"); | 59 | action.text = i18n("Add to Favorites"); | ||
60 | action.icon = "bookmark-new"; | 60 | action.icon = "bookmark-new"; | ||
61 | action.actionId = "_kicker_favorite_add"; | 61 | action.actionId = "_kicker_favorite_add"; | ||
62 | } else { | 62 | } else { | ||
63 | return null; | 63 | return null; | ||
64 | } | 64 | } | ||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |