Skip to content

Commit c28d13d

Browse files
committed
Reconnected undo and redo button clicks
1 parent 8f9d82e commit c28d13d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/layouts/MyLayout.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Description:
1919
v-if="doneAction.length"
2020
class="fa fa-undo"
2121
aria-hidden="true"
22-
@click="undo"
22+
@click="clickedUndo"
2323
></i>
2424
<i
2525
v-else
@@ -32,7 +32,7 @@ Description:
3232
v-if="undoneAction.length"
3333
class="fa fa-redo"
3434
aria-hidden="true"
35-
@click="redo"
35+
@click="clickedRedo"
3636
></i>
3737
<i v-else class="fa fa-redo unavailable" aria-hidden="true"></i>
3838
</q-btn>
@@ -150,7 +150,7 @@ import { mapState, mapActions } from "vuex";
150150
151151
export default {
152152
// Passed down from App.vue
153-
props: ["doneAction", "undoneAction"],
153+
props: ["doneAction", "undoneAction", "undoTrigger", "redoTrigger"],
154154
data() {
155155
return {
156156
tab: "component",
@@ -225,6 +225,12 @@ export default {
225225
checkboxValue = "off";
226226
}
227227
this.$store.commit("EXPORT_AS_TYPESCRIPT", checkboxValue);
228+
},
229+
clickedUndo() {
230+
this.$emit('undo');
231+
},
232+
clickedRedo(){
233+
this.$emit('redo')
228234
}
229235
},
230236
};

0 commit comments

Comments
 (0)