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:
parent
37c989ed28
commit
cc2f665313
@ -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'],
|
||||
|
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user