EnvironmentEditor Class

Editor to create or edit an AccountDto. This editor is used by both regular users and MobileTrack support users.
The page is only accessible to users with the ViewAccounts permission.
Users can only edit if they have the ManageAccounts permission.
MobileTrack support users have these permissions by default.

Definition

Namespace: MobileTrack.Web.Portal.Components.ItemEditors
Assembly: MobileTrack.Web.Portal (in MobileTrack.Web.Portal.exe) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public class EnvironmentEditor : MtBaseComponent, 
	IHasCloudEventsService, IHasUnsavedChanges
Inheritance
Object    ComponentBase    MtBaseComponent    EnvironmentEditor
Implements
IHasCloudEventsService, IHasUnsavedChanges

Constructors

EnvironmentEditorInitializes a new instance of the EnvironmentEditor class

Properties

ActiveTab The tab set to active at startup.
CloudEventsService Dependency injected service to interop with Cloud Services, e.g. when the receiver gets a message from a device or when a new account is created, a device send a message to the receiver, etc.
ConfirmDialog Modal for confirming an action
ConfirmSwitchTabDialog Dialog to confirm switching tabs when there are unsaved changes.
EditContext The EditContext for the AccountDto being edited.
FormOverlay Form overlay for submitting the form.
HasUnsavedChanges Whether the component has unsaved changes or not. This is used to determine if the user can navigate away from the page or not.
IsNewItem Whether the user is creating a new AccountDto or editing an existing one.
JsRuntime Dependency injected JS Runtime.
OriginalValue Original EnvironmentDto that is being edited. This variable is used to compare it to Model to see if changes were made.
Parent Parent of the environment we're currently working on.
RequiredPermissionsForManage Lists the permissions the user needs to be able to manage the page/item
(Overrides MtBaseComponentRequiredPermissionsForManage)
RequiredPermissionsForView Lists the permissions the user needs to be able to view the page/item
(Overrides MtBaseComponentRequiredPermissionsForView)

Methods

BuildRenderTree
(Overrides ComponentBaseBuildRenderTree(RenderTreeBuilder))
LoadData Loads the data that the component requires to get out of preview. It is invoked in the OnParametersSetAsync method of MtBaseComponent
(Overrides MtBaseComponentLoadData)
RetrievePermissions Retrieves the permissions the user has for the scope of the current page/item
(Overrides MtBaseComponentRetrievePermissions)

See Also