Skip to content

Commit

Permalink
Fixed view logic for announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmcpowned committed Aug 18, 2018
1 parent fbafa36 commit 9fc0be0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/client/views/announcement/announcement.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-show="!showAnnouncement" id="announcement" class="ui page grid">
<div class="announcement markdown" ng-bind-html="announcementText">
<div id="announcement" class="ui page grid">
<div class="announcement markdown" ng-show="showAnnouncement" ng-bind-html="announcementText">
</div>
</div>
4 changes: 1 addition & 3 deletions app/client/views/announcement/announcementCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ angular.module('reg')
var converter = new showdown.Converter();
$scope.announcementText = $sce.trustAsHtml(converter.makeHtml(Settings.announcementText));

$scope.showAnnouncement = typeof $scope.announcementText === 'b';

console.log("announcement text", typeof $scope.announcementText);
$scope.showAnnouncement = typeof $scope.announcementText === 'object';

}]);

0 comments on commit 9fc0be0

Please sign in to comment.