Bläddra i källkod

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

Show only the directory warning.
Romain Rigaux 10 år sedan
förälder
incheckning
d6cc802
1 ändrade filer med 1 tillägg och 1 borttagningar
  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">
         ${ _('The permissions for this folder are managed by the Sentry Namenode plugin.') }
       </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.') }
       </div>