Explorar o código

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

Show only the directory warning.
Romain Rigaux %!s(int64=10) %!d(string=hai) anos
pai
achega
d6cc802
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>