mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
![renovate[bot]](/assets/img/avatar_default.png)
* Update dependency eslint-plugin-import to v2.25.2 Signed-off-by: Renovate Bot <bot@renovateapp.com> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Make type imports more explicit Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Enforce use of type imports Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
22 lines
625 B
TypeScript
22 lines
625 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { store } from '..'
|
|
import type { SetRendererStatusAction } from './types'
|
|
import { RendererStatusActionType } from './types'
|
|
|
|
/**
|
|
* Dispatches a global application state change for the "renderer ready" state.
|
|
*
|
|
* @param rendererReady The new renderer ready state.
|
|
*/
|
|
export const setRendererStatus = (rendererReady: boolean): void => {
|
|
const action: SetRendererStatusAction = {
|
|
type: RendererStatusActionType.SET_RENDERER_STATUS,
|
|
rendererReady
|
|
}
|
|
store.dispatch(action)
|
|
}
|