@@ -10,6 +10,7 @@ import { storeToRefs } from 'pinia'
1010import { t } from ' @nextcloud/l10n'
1111import NcButton from ' @nextcloud/vue/components/NcButton'
1212import NcCheckboxRadioSwitch from ' @nextcloud/vue/components/NcCheckboxRadioSwitch'
13+ import IconAccountBadge from ' vue-material-design-icons/AccountBadge.vue'
1314import IconMagnify from ' vue-material-design-icons/Magnify.vue'
1415import IconMinus from ' vue-material-design-icons/Minus.vue'
1516import IconPlus from ' vue-material-design-icons/Plus.vue'
@@ -28,6 +29,7 @@ import { useAppConfigStore } from './appConfig.store.ts'
2829import { useAppConfigValue } from ' ./useAppConfigValue.ts'
2930import { useNcSelectModel } from ' ../composables/useNcSelectModel.ts'
3031import { ZOOM_MIN , ZOOM_MAX } from ' ../../../constants.js'
32+ import { BUILD_CONFIG } from ' ../../../shared/build.config.ts'
3133
3234const isLinux = window .systemInfo .isLinux
3335
@@ -81,6 +83,14 @@ const playSoundCallOption = useNcSelectModel(playSoundCall, generalNotificationO
8183const enableCallbox = useAppConfigValue (' enableCallbox' )
8284const enableCallboxOption = useNcSelectModel (enableCallbox , generalNotificationOptions )
8385
86+ const forceEnableSystemActivityStatus = BUILD_CONFIG .forceEnableSystemActivityStatus
87+ const enableSystemActivityStatus = useAppConfigValue (' enableSystemActivityStatus' )
88+ const enableSystemActivityStatusOptions = [
89+ { label: t (' talk_desktop' , ' Also from activity in the system' ), value: true } as const ,
90+ { label: t (' talk_desktop' , ' Only from activity in the app' ), value: false } as const ,
91+ ]
92+ const enableSystemActivityStatusOption = useNcSelectModel (enableSystemActivityStatus , enableSystemActivityStatusOptions )
93+
8494const secondarySpeaker = useAppConfigValue (' secondarySpeaker' )
8595
8696const EMPTY_DEVICE_OPTION = { value: null , label: t (' talk_desktop' , ' None' ) }
@@ -139,6 +149,19 @@ function relaunch() {
139149 <NcCheckboxRadioSwitch v-model =" launchAtStartup" type =" switch" >
140150 {{ t('talk_desktop', 'Launch at startup') }}
141151 </NcCheckboxRadioSwitch >
152+
153+ <SettingsSelect
154+ v-model =" enableSystemActivityStatusOption"
155+ :options =" enableSystemActivityStatusOptions"
156+ :disabled =" forceEnableSystemActivityStatus"
157+ :label =" t('talk_desktop', 'Set my user status to Online/Away')" >
158+ <template #icon =" { size } " >
159+ <IconAccountBadge :size =" size" />
160+ </template >
161+ <template v-if =" forceEnableSystemActivityStatus " #description >
162+ {{ t('talk_desktop', 'Changing this option is disabled by administrator') }}
163+ </template >
164+ </SettingsSelect >
142165 </SettingsSubsection >
143166
144167 <SettingsSubsection :name =" t('talk_desktop', 'Appearance')" >
0 commit comments