TagSpaces is an offline, open source, document manager with tagging support
Fixing flow issues in some dialogs (#1014)
mladensap33017efbcb56
diff --git a/app/components/dialogs/AboutDialog.js b/app/components/dialogs/AboutDialog.jsindex 039bb4650..d66d2c536 100644--- a/app/components/dialogs/AboutDialog.js+++ b/app/components/dialogs/AboutDialog.js@@ -35,7 +35,6 @@ import { getLastVersionPromise } from '../../reducers/settings';import AppConfig from '../../config';type Props = {- classes: Object,open: boolean,fullScreen: boolean,toggleLicenseDialog: () => void,diff --git a/app/components/dialogs/ConfirmDialog.js b/app/components/dialogs/ConfirmDialog.jsindex 7594fca54..170e87fcc 100644--- a/app/components/dialogs/ConfirmDialog.js+++ b/app/components/dialogs/ConfirmDialog.js@@ -35,9 +35,9 @@ type Props = {cancelDialogTID?: string,confirmDialogTID?: string,confirmDialogContentTID?: string,- list?: Array<string>,+ list: Array<string>,confirmCallback: (result: boolean) => void,- onClose: () => void,+ onClose: () => void};const ConfirmDialog = (props: Props) => {diff --git a/app/components/dialogs/CreateDirectoryDialog.js b/app/components/dialogs/CreateDirectoryDialog.jsindex a506a2b87..9353b4a22 100644--- a/app/components/dialogs/CreateDirectoryDialog.js+++ b/app/components/dialogs/CreateDirectoryDialog.js@@ -33,7 +33,6 @@ import AppConfig from '../../config';import { actions as AppActions } from '../../reducers/app';type Props = {- classes: Object,open: boolean,onClose: () => void,selectedDirectoryPath: string,diff --git a/app/components/dialogs/CreateFileDialog.js b/app/components/dialogs/CreateFileDialog.jsindex 8ce84dd98..f9047966b 100644--- a/app/components/dialogs/CreateFileDialog.js+++ b/app/components/dialogs/CreateFileDialog.js@@ -69,9 +69,7 @@ type Props = {onClose: () => void,selectedDirectoryPath: string | null,showSelectDirectoryDialog: () => void,- chooseDirectoryPath: (directoryPath: string) => void,- createFileAdvanced: (targetPath: string, fileName: string, content: string, fileType: string) => void,- resetState: () => void+ createFileAdvanced: (targetPath: string, fileName: string, content: string, fileType: string) => void};type State = {diff --git a/app/components/dialogs/CreateLocationDialog.js b/app/components/dialogs/CreateLocationDialog.jsindex 0361dabe7..467e52931 100644--- a/app/components/dialogs/CreateLocationDialog.js+++ b/app/components/dialogs/CreateLocationDialog.js@@ -55,16 +55,14 @@ const styles = theme => ({});type Props = {- classes: Object,+ // classes: Object,open: boolean,onClose: () => void,fullScreen: boolean,onClose: () => void,addLocation: (location: Location) => void,- perspectives: Array<Object>,showSelectDirectoryDialog: () => void,- resetState: () => void,- selectedDirectoryPath?: string | null+ resetState: () => void};type State = {diff --git a/app/components/dialogs/EditLocationDialog.js b/app/components/dialogs/EditLocationDialog.jsindex 82c973a03..76bd0ec3a 100644--- a/app/components/dialogs/EditLocationDialog.js+++ b/app/components/dialogs/EditLocationDialog.js@@ -40,15 +40,14 @@ import LocalForm from './LocalForm';import { Pro } from '../../pro';type Props = {- open?: boolean,+ open: boolean,fullScreen: boolean,resetState: () => void,onClose: () => void,- location?: Location | null,+ location: Location | null,editLocation: (location: Location) => void,- perspectives: Array<Object>,showSelectDirectoryDialog: () => void,- selectedDirectoryPath?: string | null+ selectedDirectoryPath: string | null};type State = {diff --git a/app/components/dialogs/EditTagDialog.js b/app/components/dialogs/EditTagDialog.jsindex 4b1dc82be..fbe176920 100644--- a/app/components/dialogs/EditTagDialog.js+++ b/app/components/dialogs/EditTagDialog.js@@ -42,9 +42,9 @@ type Props = {type State = {inputError: boolean,- displayColorPicker?: boolean,- displayTextColorPicker?: boolean,- disableConfirmButton?: boolean,+ displayColorPicker: boolean,+ displayTextColorPicker: boolean,+ disableConfirmButton: boolean,title: string,color: string,textcolor: string,diff --git a/app/components/dialogs/EditTagGroupDialog.js b/app/components/dialogs/EditTagGroupDialog.jsindex e8d76fa90..e3aac172e 100644--- a/app/components/dialogs/EditTagGroupDialog.js+++ b/app/components/dialogs/EditTagGroupDialog.js@@ -34,22 +34,22 @@ import i18n from '../../services/i18n';import TransparentBackground from '../TransparentBackground';type Props = {- open?: boolean,+ open: boolean,editTagGroup: (tagGroup: TagGroup) => void,- selectedTagGroupEntry?: TagGroup,+ selectedTagGroupEntry: TagGroup,onClose: () => void};type State = {- inputError?: boolean,- displayColorPicker?: boolean,- displayTextColorPicker?: boolean,- disableConfirmButton?: boolean,- title?: string,- applyChanges?: boolean,- color?: string,- textcolor?: string,- modifiedDate?: string+ inputError: boolean,+ displayColorPicker: boolean,+ displayTextColorPicker: boolean,+ disableConfirmButton: boolean,+ title: string,+ applyChanges: boolean,+ color: string,+ textcolor: string,+ modifiedDate: string};class EditTagGroupDialog extends React.Component<Props, State> {diff --git a/app/components/dialogs/GenericDialog.js b/app/components/dialogs/GenericDialog.jsindex c87378dc3..f98af092a 100644--- a/app/components/dialogs/GenericDialog.js+++ b/app/components/dialogs/GenericDialog.js@@ -18,7 +18,6 @@*/import React from 'react';-import uuidv1 from 'uuid';import Dialog from '@material-ui/core/Dialog';import Slide from '@material-ui/core/Slide';@@ -27,14 +26,14 @@ export function DialogTransition(props) {}type Props = {- open?: boolean,- fullScreen?: boolean,+ open: boolean,+ fullScreen: boolean,onClose: () => void,- onBackdropClick?: () => void,- onEnterKey?: () => void,- renderTitle?: () => Object,+ onBackdropClick: () => void,+ onEnterKey: () => void,+ renderTitle: () => Object,renderContent: () => Object,- renderActions?: () => Object+ renderActions: () => Object};export function onEnterKeyHandler(event: any, confirmFunction: () => void) {diff --git a/app/components/dialogs/ImportExportTagGroupsDialog.js b/app/components/dialogs/ImportExportTagGroupsDialog.jsindex c7df639e7..8e5cb005e 100644--- a/app/components/dialogs/ImportExportTagGroupsDialog.js+++ b/app/components/dialogs/ImportExportTagGroupsDialog.js@@ -47,15 +47,16 @@ type Props = {open: boolean,onClose: () => void,dialogModeImport: boolean,- showNotification?: (text: string, notificationType: string, autohide: boolean) => void+ showNotification: (text: string, notificationType: string, autohide: boolean) => void};type State = {- errorTextName?: boolean,- disableConfirmButton?: boolean,- open?: boolean,- tagGroupList?: null | Array,- checkedAll?: boolean+ errorTextName: boolean,+ disableConfirmButton: boolean,+ open: boolean,+ tagGroupList: null | Array,+ checkedAll: boolean,+ selectedAll: boolean};class ImportExportTagGroupsDialog extends React.Component<Props, State> {diff --git a/app/components/dialogs/RenameDirectoryDialog.js b/app/components/dialogs/RenameDirectoryDialog.jsindex 5a79ab959..1a228e391 100644--- a/app/components/dialogs/RenameDirectoryDialog.js+++ b/app/components/dialogs/RenameDirectoryDialog.js@@ -40,9 +40,10 @@ type Props = {};type State = {- inputError?: boolean,- disableConfirmButton?: boolean,- name?: string+ inputError: boolean,+ disableConfirmButton: boolean,+ name: string,+ length: string};class RenameDirectoryDialog extends React.Component<Props, State> {diff --git a/app/components/dialogs/RenameFileDialog.js b/app/components/dialogs/RenameFileDialog.jsindex eabe6973f..2c7d5aaae 100644--- a/app/components/dialogs/RenameFileDialog.js+++ b/app/components/dialogs/RenameFileDialog.js@@ -44,9 +44,10 @@ type Props = {};type State = {- inputError?: boolean,- disableConfirmButton?: boolean,- fileName?: string+ inputError: boolean,+ disableConfirmButton: boolean,+ fileName: string,+ length: string};const styles = theme => ({diff --git a/app/components/dialogs/SelectDirectoryDialog.js b/app/components/dialogs/SelectDirectoryDialog.jsindex 4e5009471..18ad887f5 100644--- a/app/components/dialogs/SelectDirectoryDialog.js+++ b/app/components/dialogs/SelectDirectoryDialog.js@@ -44,12 +44,12 @@ type Props = {};type State = {- errorTextPath?: boolean,- errorTextName?: boolean,- open?: boolean,- drives?: Array<string>,- currentPath?: string,- isDefault?: boolean+ errorTextPath: boolean,+ errorTextName: boolean,+ open: boolean,+ drives: Array<string>,+ currentPath: string,+ isDefault: boolean};const styles = () => ({