File

src/lib/inbox/services/update-presets.service.ts

Description

Service to update the presets and check if the inbox has changed.

Index

Properties
Methods

Methods

handleChangesOfPreset
handleChangesOfPreset(action: string)

Handles the changes in the presets.

Parameters :
Name Type Optional Description
action string No

The action to execute.

Returns : void
Public setCurrentRenamedPreset
setCurrentRenamedPreset(renamedPreset: literal type)

Set the current renamed preset, by the preset textarea field.

Parameters :
Name Type Optional Description
renamedPreset literal type No

The renamed preset. [groupName, presetName, newPresetName]

Returns : void
Public setNewPresetName
setNewPresetName(newPresetName: string[])

Set the new preset name from the different fields.

Parameters :
Name Type Optional Description
newPresetName string[] No

The new preset name. [groupName, presetName, presetIdentifier]

Returns : void

Properties

currentPresetAction$
Type : unknown
Default value : new BehaviorSubject<{ operation: TPresetOperations; groupName: string; groupIdentifier: string; presetName?: string; newPresetName?: string; }>({ operation: 'none', groupName: '', groupIdentifier: '', presetName: '', newPresetName: '', })

Containing the current preset action which is to emit to the consuming application.

currentRenamedPreset$
Type : unknown
Default value : new BehaviorSubject<{ groupName: string; presetName: string; newPresetName: string; presetIdentifier: string; }>({ groupName: '', presetName: '', newPresetName: '', presetIdentifier: '' })

The preset that is to be renamed.

modifiedPresets$
Type : unknown
Default value : new BehaviorSubject<IPreset[]>([])

The presets group that are to be emitted to the consuming application.

newPresetName$
Type : unknown
Default value : new BehaviorSubject<string[]>([])

The name of the new preset is saved here. [groupName, presetName, presetIdentifier]

results matching ""

    No results matching ""