refactoring

This commit is contained in:
Philipp Kühn
2018-10-28 22:28:02 +01:00
parent 1e88fa1cb6
commit 340b1b2266

View File

@@ -3,18 +3,9 @@
<menu-bar class="menubar" :editor="editor">
<template slot-scope="{ nodes, marks, commands }">
<button
class="menubar__button"
@click="commands.history"
v-if="commands.history"
>
</button>
<button
class="menubar__button"
@click="commands.undo"
v-if="commands.undo"
>
</button>
@@ -22,19 +13,10 @@
<button
class="menubar__button"
@click="commands.redo"
v-if="commands.redo"
>
</button>
<button
class="menubar__button"
@click="commands.undoRedo"
v-if="commands.undoRedo"
>
undoredo
</button>
<button
class="menubar__button"
:class="{ 'is-active': marks.bold.active() }"