mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-13 14:40:25 +00:00
* review comment * i18n fix * review comments * review comments * Fix import order in report_problem.test.tsx Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com> * Add distinctUntilChanged to observeIsFreeEdition and fix skip-screen condition - Added distinctUntilChanged() to observeIsFreeEdition to match sibling helpers - Removed attachLogsEnabled from skip-screen condition as it controls file picker for post composition, not report email - Removed unused attachLogsEnabled prop and observable from settings report_problem component - Updated tests to reflect the removed condition Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com> * Remove unused Screens import from report_problem test Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor Agent <agent@cursor.com> Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com> Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
892 B
TypeScript
20 lines
892 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {withDatabase, withObservables} from '@nozbe/watermelondb/react';
|
|
|
|
import {observeConfigBooleanValue, observeConfigValue, observeIsFreeEdition, observeReportAProblemMetadata} from '@queries/servers/system';
|
|
|
|
import ReportProblem from './report_problem';
|
|
|
|
const enhanced = withObservables([], ({database}) => ({
|
|
allowDownloadLogs: observeConfigBooleanValue(database, 'AllowDownloadLogs', true),
|
|
isFreeEdition: observeIsFreeEdition(database),
|
|
reportAProblemMail: observeConfigValue(database, 'ReportAProblemMail'),
|
|
reportAProblemType: observeConfigValue(database, 'ReportAProblemType'),
|
|
siteName: observeConfigValue(database, 'SiteName'),
|
|
metadata: observeReportAProblemMetadata(database),
|
|
}));
|
|
|
|
export default withDatabase(enhanced(ReportProblem));
|