diff --git a/LANCommander/Components/FileManagerComponents/FileManager.razor b/LANCommander/Components/FileManagerComponents/FileManager.razor
index ec46146..aafeb97 100644
--- a/LANCommander/Components/FileManagerComponents/FileManager.razor
+++ b/LANCommander/Components/FileManagerComponents/FileManager.razor
@@ -5,56 +5,87 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @foreach (var breadcrumb in Breadcrumbs)
- {
- @breadcrumb.Name
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Are you sure you want to delete the selected file@(Selected.Count() == 1 ? "" : "s")?
-
-
-
-
-
-
-
+ @if (Features.HasFlag(FileManagerFeatures.NavigationBack))
+ {
+
+
+
+
+
+ }
+
+ @if (Features.HasFlag(FileManagerFeatures.NavigationForward))
+ {
+
+
+
+
+
+ }
+
+ @if (Features.HasFlag(FileManagerFeatures.UpALevel))
+ {
+
+
+
+
+
+ }
+
+ @if (Features.HasFlag(FileManagerFeatures.Refresh))
+ {
+
+
+
+
+
+ }
+
+ @if (Features.HasFlag(FileManagerFeatures.Breadcrumbs))
+ {
+
+
+ @foreach (var breadcrumb in Breadcrumbs)
+ {
+ @breadcrumb.Name
+ }
+
+
+ }
+
+ @if (Features.HasFlag(FileManagerFeatures.NewFolder))
+ {
+
+
+
+
+
+ }
+
+ @if (Features.HasFlag(FileManagerFeatures.UploadFile))
+ {
+
+
+
+
+
+ }
+
+ @if (Features.HasFlag(FileManagerFeatures.Delete))
+ {
+
+
+
+
+ Are you sure you want to delete the selected file@(Selected.Count() == 1 ? "" : "s")?
+
+
+
+
+
+
+
+ }
@@ -124,6 +155,7 @@
[Parameter] public Guid ArchiveId { get; set; }
[Parameter] public string WorkingDirectory { get; set; }
[Parameter] public bool SelectMultiple { get; set; } = true;
+ [Parameter] public FileManagerFeatures Features { get; set; } = FileManagerFeatures.NavigationBack | FileManagerFeatures.NavigationForward | FileManagerFeatures.UpALevel | FileManagerFeatures.Refresh | FileManagerFeatures.Breadcrumbs | FileManagerFeatures.NewFolder | FileManagerFeatures.UploadFile | FileManagerFeatures.Delete;
[Parameter] public IEnumerable
Selected { get; set; } = new List();
[Parameter] public EventCallback> SelectedChanged { get; set; }
diff --git a/LANCommander/Components/FileManagerComponents/FileManagerFeatures.cs b/LANCommander/Components/FileManagerComponents/FileManagerFeatures.cs
new file mode 100644
index 0000000..baaf7af
--- /dev/null
+++ b/LANCommander/Components/FileManagerComponents/FileManagerFeatures.cs
@@ -0,0 +1,15 @@
+namespace LANCommander.Components.FileManagerComponents
+{
+ [Flags]
+ public enum FileManagerFeatures
+ {
+ NavigationBack = 0,
+ NavigationForward = 1,
+ UpALevel = 2,
+ Refresh = 4,
+ Breadcrumbs = 8,
+ NewFolder = 16,
+ UploadFile = 32,
+ Delete = 64,
+ }
+}