CompanyEditor Class

Settings editor for a CompanyDto, whether performed by MobileTrack support employees or by the company employees themselves.

Definition

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

Constructors

CompanyEditorInitializes a new instance of the CompanyEditor class

Properties

ActiveTab The tab to open when the editor is opened.
AzureFileStorage Dependency injection of the IAzureStorage Azure Blob Storage service.
Every CompanyDto, except for MobileTrack itself (for now?) has their own folder in the blob storage to store files in.
This can be their logo or icon files, images representing users or Devices, or attachments they want to store.
It can also be used to store reports in generated by MobileTrack Nexus.
ConfirmModal Confirm modal
EditContext Edit Context for the EditForm, it is based on Model.
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.
KeyVault Azure Key Vault service to use for key rotation in ConfirmRotateCompanyKey
Model Model the user is editing in the EditForm
OriginalValue Original company model to compare changes against.
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))
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Overrides MtBaseComponentDispose)
LoadData Loads the data that the component requires to get out of preview. It is invoked in the OnParametersSetAsync method of MtBaseComponent
(Overrides MtBaseComponentLoadData)
OnAfterRenderAsync Method invoked after each time the component has been rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any ElementReference fields will be populated by the time this runs. This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated. Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop.
(Overrides ComponentBaseOnAfterRenderAsync(Boolean))
OnInitialized Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
(Overrides ComponentBaseOnInitialized)

See Also