Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide the Export functionality on Cordova IOS untill fix this feature #1452

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Board/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class Navbar extends React.Component {
<div className="Navbar__group Navbar__group--end">
{!isLocked && (
<React.Fragment>
<PrintBoardButton />
{!isIOS() && <PrintBoardButton />}
{!isMobile.any && <FullScreenButton />}
{isLogged && (isIOS() || !isCordova()) && (
<PremiumFeature>
Expand Down
61 changes: 33 additions & 28 deletions src/components/Settings/Settings.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import FullScreenDialog from '../UI/FullScreenDialog';
import Paper from '@material-ui/core/Paper';
import UserIcon from '../UI/UserIcon';
import SettingsTour from './SettingsTour.component';

import { isCordova, isAndroid, isElectron, isIOS } from '../../cordova-util';

import './Settings.css';
Expand Down Expand Up @@ -107,6 +106,38 @@ export class Settings extends PureComponent {
peopleSettings.push(subscribeSection);
}

const systemSettings = [
{
icon: <CloudDownloadIcon />,
text: messages.import,
url: '/settings/import'
},
{
icon: <VisibilityIcon />,
text: messages.display,
url: '/settings/display'
},
{
icon: <ScanningIcon />,
text: messages.scanning,
url: '/settings/scanning'
},
{
icon: <NavigationIcon />,
text: messages.navigation,
url: '/settings/navigation'
}
];
//only untill fix export on cordova IOS after that add it directly to the systemSetting array
if (!isIOS()) {
const exportSetting = {
icon: <CloudUploadIcon />,
text: messages.export,
url: '/settings/export'
};
systemSettings.unshift(exportSetting);
}

return [
{
subheader: messages.people,
Expand All @@ -129,33 +160,7 @@ export class Settings extends PureComponent {
},
{
subheader: messages.system,
settings: [
{
icon: <CloudUploadIcon />,
text: messages.export,
url: '/settings/export'
},
{
icon: <CloudDownloadIcon />,
text: messages.import,
url: '/settings/import'
},
{
icon: <VisibilityIcon />,
text: messages.display,
url: '/settings/display'
},
{
icon: <ScanningIcon />,
text: messages.scanning,
url: '/settings/scanning'
},
{
icon: <NavigationIcon />,
text: messages.navigation,
url: '/settings/navigation'
}
]
settings: systemSettings
},
{
subheader: messages.help,
Expand Down