瀏覽代碼

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

Show only the directory warning.
Romain Rigaux 10 年之前
父節點
當前提交
d6cc802
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>