Browse Source

[fb] Do not show Sentry warning when selecting files in a Sentry directory

Show only the directory warning.
Romain Rigaux 10 years ago
parent
commit
d6cc802023
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/filebrowser/src/filebrowser/templates/listdir.mako

+ 1 - 1
apps/filebrowser/src/filebrowser/templates/listdir.mako

@@ -134,7 +134,7 @@ ${ fb_components.menubar() }
       <div class="alert alert-warn" data-bind="visible: isCurrentDirSentryManaged">
       <div class="alert alert-warn" data-bind="visible: isCurrentDirSentryManaged">
         ${ _('The permissions for this folder are managed by the Sentry Namenode plugin.') }
         ${ _('The permissions for this folder are managed by the Sentry Namenode plugin.') }
       </div>
       </div>
-      <div class="alert alert-warn" data-bind="visible:selectedSentryFiles().length > 0">
+      <div class="alert alert-warn" data-bind="visible: ! isCurrentDirSentryManaged() && selectedSentryFiles().length > 0">
         ${ _('The permissions of some of the selected files are managed by the Sentry Namenode plugin.') }
         ${ _('The permissions of some of the selected files are managed by the Sentry Namenode plugin.') }
       </div>
       </div>