1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Electron: Undone tests

This commit is contained in:
Laurent Cozic 2018-01-08 10:57:29 +01:00
parent 37c989ed28
commit cc2f665313
2 changed files with 16 additions and 28 deletions

View File

@ -171,16 +171,16 @@ class Application extends BaseApplication {
{
label: _('File'),
submenu: [{
label: _('Save'),
accelerator: 'CommandOrControl+S',
screens: ['Main'],
click: () => {
this.dispatch({
type: 'WINDOW_COMMAND',
name: 'save_ntoe',
});
}
}, {
// label: _('Save'),
// accelerator: 'CommandOrControl+S',
// screens: ['Main'],
// click: () => {
// this.dispatch({
// type: 'WINDOW_COMMAND',
// name: 'save_ntoe',
// });
// }
// }, {
label: _('New note'),
accelerator: 'CommandOrControl+N',
screens: ['Main'],

View File

@ -178,14 +178,6 @@ class NoteTextComponent extends React.Component {
if ('syncStarted' in nextProps && !nextProps.syncStarted && !this.isModified()) {
await this.reloadNote(nextProps, { noReloadIfLocalChanges: true });
}
if (newProps.windowCommand) {
this.doCommand(newProps.windowCommand);
}
}
async doCommand(command) {
console.info(command);
}
isModified() {
@ -377,10 +369,6 @@ class NoteTextComponent extends React.Component {
}
}
async commandSave() {
}
commandSetAlarm() {
const noteId = this.props.noteId;
if (!noteId) return;
@ -526,12 +514,12 @@ class NoteTextComponent extends React.Component {
const toolbarItems = [];
toolbarItems.push({
title: _('Save'),
iconName: 'fa-save',
enabled: this.isModified(),
onClick: () => { },
});
// toolbarItems.push({
// title: _('Save'),
// iconName: 'fa-save',
// enabled: this.isModified(),
// onClick: () => { },
// });
toolbarItems.push({
title: _('Attach file'),