remove old commands

This commit is contained in:
Philipp Kühn
2018-10-28 22:17:21 +01:00
parent dcba6686dc
commit 1e88fa1cb6
4 changed files with 13 additions and 38 deletions

View File

@@ -1,36 +1,36 @@
<template>
<div class="editor">
<menu-bar class="menubar" :editor="editor">
<template slot-scope="{ nodes, marks, newCommands }">
<template slot-scope="{ nodes, marks, commands }">
<button
class="menubar__button"
@click="newCommands.history"
v-if="newCommands.history"
@click="commands.history"
v-if="commands.history"
>
</button>
<button
class="menubar__button"
@click="newCommands.undo"
v-if="newCommands.undo"
@click="commands.undo"
v-if="commands.undo"
>
</button>
<button
class="menubar__button"
@click="newCommands.redo"
v-if="newCommands.redo"
@click="commands.redo"
v-if="commands.redo"
>
</button>
<button
class="menubar__button"
@click="newCommands.undoRedo"
v-if="newCommands.undoRedo"
@click="commands.undoRedo"
v-if="commands.undoRedo"
>
undoredo
</button>