Skip to content

Commit

Permalink
Correct assignment of classes on <body> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Jan 15, 2024
1 parent 723c184 commit bcff354
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion client/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<!-- endbuild -->
</head>

<body class="container-fluid d-flex flex-column" data-ng-class="{{Utils.getCSSFlags()}}" data-flow-prevent-drop>
<body class="container-fluid d-flex flex-column" data-ng-class="{'public': Utils.isWhistleblowerPage(), 'block-user-input': showLoadingPanel}" data-flow-prevent-drop>
<div id="Skip"><a href="#Content" tabindex="1" data-translate>Skip to content</a></div>
<div id="PageOverlay" class="ng-cloak" data-ng-hide="!showLoadingPanel">
<div id="Loader"></div>
Expand Down
8 changes: 0 additions & 8 deletions client/app/js/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -1024,14 +1024,6 @@ factory("Utils", ["$rootScope", "$http", "$q", "$location", "$filter", "$timeout
return ["/", "/submission"].indexOf($location.path()) !== -1;
},

getCSSFlags: function() {
return {
"public": this.isWhistleblowerPage(),
"embedded": $window.self !== $window.top,
"block-user-input": $rootScope.showLoadingPanel
};
},

showUserStatusBox: function() {
return $rootScope.public.node.wizard_done &&
$rootScope.page !== "homepage" &&
Expand Down

0 comments on commit bcff354

Please sign in to comment.