-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Viewing / Editing of all doc type except PDF not possible any…
…more #17
- Loading branch information
Showing
7 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { id as pluginId } from '../manifest'; | ||
import {id as pluginId} from '../manifest'; | ||
|
||
export const OPEN_ROOT_MODAL = pluginId + '_open_root_modal'; | ||
export const CLOSE_ROOT_MODAL = pluginId + '_close_root_modal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OPEN_ROOT_MODAL, CLOSE_ROOT_MODAL } from './action_types'; | ||
import {OPEN_ROOT_MODAL, CLOSE_ROOT_MODAL} from './action_types'; | ||
|
||
export const rootModalData = (state, action) => { | ||
switch (action.type) { | ||
case OPEN_ROOT_MODAL: | ||
return { | ||
visible: true, | ||
fileId: action.payload.fileId | ||
}; | ||
case CLOSE_ROOT_MODAL: | ||
return { | ||
visible: false | ||
}; | ||
default: | ||
return state === undefined ? { visible: false } : state; | ||
case OPEN_ROOT_MODAL: | ||
return { | ||
visible: true, | ||
fileId: action.payload.fileId, | ||
}; | ||
case CLOSE_ROOT_MODAL: | ||
return { | ||
visible: false, | ||
}; | ||
default: | ||
return typeof state === 'undefined' ? {visible: false} : state; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters