Skip to content

Commit

Permalink
Fix view logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmcpowned committed Aug 18, 2018
1 parent 3919519 commit 455a882
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/client/views/announcement/announcementCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ angular.module('reg')

var Settings = Settings.data;

$scope.isAnnouncementEnabled =
(Settings.announcementText == "" ||
Settings.announcementText == null,
Settings.announcementText == undefined) ? false : true;

var converter = new showdown.Converter();
$scope.announcementText = $sce.trustAsHtml(converter.makeHtml(Settings.announcementText));

$scope.isAnnouncementEnabled = $scope.announcementText !== "";

}]);

0 comments on commit 455a882

Please sign in to comment.