fix(core): meeting settings issues (#12226)
fix AF-2606 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - The "meetings" settings panel is now only visible on macOS when using the Electron build. - The "Meetings Settings..." menu item in the recording menu appears only when recording functionality is available. - **Style** - Improved the subtitle formatting in the meetings settings panel for clearer visual separation and enhanced readability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -220,6 +220,7 @@ class TrayState implements Disposable {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (checkRecordingAvailable()) {
|
||||||
items.push({
|
items.push({
|
||||||
label: `Meetings Settings...`,
|
label: `Meetings Settings...`,
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -229,6 +230,7 @@ class TrayState implements Disposable {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export const useGeneralSettingList = (): GeneralSettingList => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (environment.isMacOs && BUILD_CONFIG.isElectron) {
|
||||||
settings.push({
|
settings.push({
|
||||||
key: 'meetings',
|
key: 'meetings',
|
||||||
title: t['com.affine.settings.meetings'](),
|
title: t['com.affine.settings.meetings'](),
|
||||||
@@ -102,6 +103,7 @@ export const useGeneralSettingList = (): GeneralSettingList => {
|
|||||||
testId: 'meetings-panel-trigger',
|
testId: 'meetings-panel-trigger',
|
||||||
beta: !meetingSettings?.enabled,
|
beta: !meetingSettings?.enabled,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (hasPaymentFeature) {
|
if (hasPaymentFeature) {
|
||||||
settings.splice(4, 0, {
|
settings.splice(4, 0, {
|
||||||
|
|||||||
@@ -201,16 +201,16 @@ const MeetingsSettingsMain = () => {
|
|||||||
beta
|
beta
|
||||||
title={t['com.affine.settings.meetings']()}
|
title={t['com.affine.settings.meetings']()}
|
||||||
subtitle={
|
subtitle={
|
||||||
t['com.affine.settings.meetings.setting.prompt']() +
|
<>
|
||||||
'\n' +
|
{t['com.affine.settings.meetings.setting.prompt']()}
|
||||||
(
|
<br />
|
||||||
<Trans
|
<Trans
|
||||||
i18nKey="com.affine.settings.meetings.setting.prompt.2"
|
i18nKey="com.affine.settings.meetings.setting.prompt.2"
|
||||||
components={{
|
components={{
|
||||||
strong: <strong />,
|
strong: <strong />,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user