feat share: Ability to share files using Web Activities
feat pick: Ability to pick files for other apps
This commit is contained in:
15
src/js/actions/pick.js
Normal file
15
src/js/actions/pick.js
Normal file
@ -0,0 +1,15 @@
|
||||
import { PICK } from 'actions/types';
|
||||
|
||||
export function enable(request) {
|
||||
return {
|
||||
type: PICK,
|
||||
active: request
|
||||
}
|
||||
}
|
||||
|
||||
export function disable() {
|
||||
return {
|
||||
type: PICK,
|
||||
active: false
|
||||
}
|
||||
}
|
@ -20,14 +20,15 @@ const TYPES = {
|
||||
MOVE_FILE: Symbol('MOVE_FILE'),
|
||||
|
||||
MENU: Symbol('MENU'),
|
||||
|
||||
DIALOG: Symbol('DIALOG'),
|
||||
|
||||
SPINNER: Symbol('SPINNER'),
|
||||
|
||||
SETTINGS: Symbol('SETTINGS'),
|
||||
|
||||
SEARCH: Symbol('SEARCH')
|
||||
SEARCH: Symbol('SEARCH'),
|
||||
|
||||
PICK: Symbol('PICK')
|
||||
};
|
||||
|
||||
export default TYPES;
|
||||
|
Reference in New Issue
Block a user