diff options
author | Klemens Arro <klemens.arro@admcloudtech.com> | 2020-04-12 13:52:20 +0300 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2020-04-14 09:19:41 +0200 |
commit | bbe835d23a52019ad4554c234b5737f0ebaa7821 (patch) | |
tree | e882fbdde2f9a2cdfbd64e35f2243d203ad7415a /app/features/settings/actions.js | |
parent | 5a863ab904935cd259bb30a9e155b7665e36644f (diff) |
Add always on top window toggle to settings
This commit will add a toggle to settings drawer to enable/disable the floating (always on top) window during a call (issue #171).
This feature is based on the code from pull request #172 by @gorance-teletrader.
Diffstat (limited to 'app/features/settings/actions.js')
-rw-r--r-- | app/features/settings/actions.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/features/settings/actions.js b/app/features/settings/actions.js index 41b90ed..a8a481f 100644 --- a/app/features/settings/actions.js +++ b/app/features/settings/actions.js @@ -1,6 +1,7 @@ // @flow import { + SET_ALWAYS_ON_TOP_WINDOW_ENABLED, SET_AUDIO_MUTED, SET_AVATAR_URL, SET_EMAIL, @@ -108,3 +109,18 @@ export function setStartWithVideoMuted(startWithVideoMuted: boolean) { } +/** + * Set window always on top. + * + * @param {boolean} alwaysOnTopWindowEnabled - Whether to set AlwaysOnTop Window Enabled. + * @returns {{ + * type: SET_ALWAYS_ON_TOP_WINDOW_ENABLED, + * alwaysOnTopWindowEnabled: boolean + * }} + */ +export function setWindowAlwaysOnTop(alwaysOnTopWindowEnabled: boolean) { + return { + type: SET_ALWAYS_ON_TOP_WINDOW_ENABLED, + alwaysOnTopWindowEnabled + }; +} |