Edit mode improvements
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Oqtane.Modules;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
@ -18,6 +19,7 @@ namespace Oqtane.Models
|
||||
[NotMapped]
|
||||
public string Permissions { get; set; }
|
||||
|
||||
// PageModule properties
|
||||
[NotMapped]
|
||||
public int PageModuleId { get; set; }
|
||||
[NotMapped]
|
||||
@ -30,11 +32,23 @@ namespace Oqtane.Models
|
||||
public int Order { get; set; }
|
||||
[NotMapped]
|
||||
public string ContainerType { get; set; }
|
||||
|
||||
// SiteRouter properties
|
||||
[NotMapped]
|
||||
public string ModuleType { get; set; }
|
||||
[NotMapped]
|
||||
public int PaneModuleIndex { get; set; }
|
||||
[NotMapped]
|
||||
public int PaneModuleCount { get; set; }
|
||||
|
||||
// IModuleControl properties
|
||||
[NotMapped]
|
||||
public SecurityAccessLevel SecurityAccessLevel { get; set; }
|
||||
[NotMapped]
|
||||
public string ControlTitle { get; set; }
|
||||
[NotMapped]
|
||||
public string Actions { get; set; }
|
||||
[NotMapped]
|
||||
public string AdminContainerType { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ namespace Oqtane.Models
|
||||
public string Icon { get; set; }
|
||||
public string Panes { get; set; }
|
||||
public bool IsNavigation { get; set; }
|
||||
public bool EditMode { get; set; }
|
||||
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime CreatedOn { get; set; }
|
||||
|
11
Oqtane.Shared/Modules/SecurityAccessLevel.cs
Normal file
11
Oqtane.Shared/Modules/SecurityAccessLevel.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace Oqtane.Modules
|
||||
{
|
||||
public enum SecurityAccessLevel
|
||||
{
|
||||
Anonymous,
|
||||
View,
|
||||
Edit,
|
||||
Admin,
|
||||
Host
|
||||
}
|
||||
}
|
@ -19,5 +19,6 @@
|
||||
public const int ReloadApplication = 3;
|
||||
public const int ReloadSite = 2;
|
||||
public const int ReloadPage = 1;
|
||||
public const int ReloadReset = 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user