mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
minor changes
This commit is contained in:
parent
e3c1746880
commit
e2012ed833
@ -7,6 +7,7 @@ import { Registry } from 'src/registry.js'
|
|||||||
import { ScreenHeader } from 'src/components/screen-header.js';
|
import { ScreenHeader } from 'src/components/screen-header.js';
|
||||||
import { Checkbox } from 'src/components/checkbox.js'
|
import { Checkbox } from 'src/components/checkbox.js'
|
||||||
import { NoteFolderService } from 'src/services/note-folder-service.js';
|
import { NoteFolderService } from 'src/services/note-folder-service.js';
|
||||||
|
import { _ } from 'src/locale.js';
|
||||||
|
|
||||||
class NoteScreenComponent extends React.Component {
|
class NoteScreenComponent extends React.Component {
|
||||||
|
|
||||||
@ -56,6 +57,20 @@ class NoteScreenComponent extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteNote_onPress = (noteId) => {
|
||||||
|
Log.info('DELETE', noteId);
|
||||||
|
}
|
||||||
|
|
||||||
|
attachFile_onPress = (noteId) => {
|
||||||
|
}
|
||||||
|
|
||||||
|
menuOptions = () => {
|
||||||
|
return [
|
||||||
|
{ title: _('Attach file'), onPress: () => { this.attachFile_onPress(this.state.note.id); } },
|
||||||
|
{ title: _('Delete note'), onPress: () => { this.deleteNote_onPress(this.state.note.id); } },
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const note = this.state.note;
|
const note = this.state.note;
|
||||||
const isTodo = !!Number(note.is_todo);
|
const isTodo = !!Number(note.is_todo);
|
||||||
@ -71,7 +86,7 @@ class NoteScreenComponent extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={{flex: 1}}>
|
<View style={{flex: 1}}>
|
||||||
<ScreenHeader navState={this.props.navigation.state} />
|
<ScreenHeader navState={this.props.navigation.state} menuOptions={this.menuOptions()} />
|
||||||
<View style={{ flexDirection: 'row' }}>
|
<View style={{ flexDirection: 'row' }}>
|
||||||
{ isTodo && <Checkbox checked={!!Number(note.todo_completed)} /> }<TextInput style={{flex:1}} value={note.title} onChangeText={this.title_changeText} />
|
{ isTodo && <Checkbox checked={!!Number(note.todo_completed)} /> }<TextInput style={{flex:1}} value={note.title} onChangeText={this.title_changeText} />
|
||||||
</View>
|
</View>
|
||||||
|
@ -1,3 +1 @@
|
|||||||
c:
|
c:\Users\Laurent\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_5X_API_23_Google_API_
|
||||||
cd c:\Users\Laurent\AppData\Local\Android\sdk\tools
|
|
||||||
emulator.exe -avd Nexus_5X_API_23_Google_API_
|
|
Loading…
Reference in New Issue
Block a user