Skip to content

Commit

Permalink
Replace usage of default as key name (oppia#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
526avijitgupta authored and wxyxinyu committed Aug 8, 2016
1 parent 1511750 commit c1c5a0b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/templates/dev/head/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ oppia.controller('Dashboard', [
DashboardBackendApiService, RatingComputationService,
ExplorationCreationService, FATAL_ERROR_CODES, UrlInterpolationService) {
var EXP_PUBLISH_TEXTS = {
default: 'This exploration is private. Publish it to receive statistics.',
sm: 'Publish the exploration to receive statistics.'
defaultText: (
'This exploration is private. Publish it to receive statistics.'),
smText: 'Publish the exploration to receive statistics.'
};

$scope.DEFAULT_TWITTER_SHARE_MESSAGE_DASHBOARD = (
Expand Down Expand Up @@ -57,9 +58,9 @@ oppia.controller('Dashboard', [
$scope.checkForMobileView = function() {
if ($window.innerWidth < 500) {
$scope.myExplorationsView = 'card';
$scope.publishText = EXP_PUBLISH_TEXTS.sm;
$scope.publishText = EXP_PUBLISH_TEXTS.smText;
} else {
$scope.publishText = EXP_PUBLISH_TEXTS.default;
$scope.publishText = EXP_PUBLISH_TEXTS.defaultText;
}
};

Expand Down

0 comments on commit c1c5a0b

Please sign in to comment.