Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
hide runtime config button if not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Jul 21, 2021
1 parent 732e936 commit f6aab17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions static/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ <h2>
class="ui circular rss square icon"
ng-class="{orange: state.LatestRSSGuid != storage.tcRSSGUID, green: $root.omni.mode.rss }"
title="RSS List"></i>
<i ng-if="[[.AllowRuntimeConfigure]]" ng-click="toggleSections('config')"
ng-class="{green: $root.config.edit}" title="Edit Config" class="ui circular server icon"></i>
[[ if .AllowRuntimeConfigure ]]
<i ng-click="toggleSections('config')" ng-class="{green: $root.config.edit}" title="Edit Config"
class="ui circular server icon"></i>
[[ end ]]
<i ng-click="toggleSections('omni')" ng-class="{green: $root.omni.edit}" title="Edit Magnet/Torrent"
class="ui circular magnet icon"></i>
<i class="ui circular icon" title="Connecting Status" ng-click="toggleWebsocket()"
Expand Down

0 comments on commit f6aab17

Please sign in to comment.