1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Desktop: Dev fix: Added back title on header buttons

This commit is contained in:
Laurent Cozic
2020-07-04 10:33:04 +01:00
parent 3aea55ee63
commit 7035b1f9f6
7 changed files with 18 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ export default class CommandService extends BaseService {
title(commandName:string):string {
const command = this.commandByName(commandName);
if (!command || !command.runtime) return null;
return command.runtime.props ? command.runtime.title(command.runtime.props ? command.runtime.props : {}) : null;
return command.runtime.title(command.runtime.props ? command.runtime.props : {});
}
private extractExecuteArgs(command:Command, executeArgs:any) {