update
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
<div
|
||||
class="sidebar-add-beat"
|
||||
@click="addNewBeat()">
|
||||
@click="onAddNewBeat()">
|
||||
+
|
||||
</div>
|
||||
</div>
|
||||
@@ -103,6 +103,10 @@
|
||||
saveDirty,
|
||||
} = beatStore;
|
||||
|
||||
function onAddNewBeat() {
|
||||
activeBeatIndex.value = addNewBeat();
|
||||
}
|
||||
|
||||
watch(saveDirty, (dirty) => {
|
||||
if (dirty) {
|
||||
document.title = `${ TITLE } (unsaved changes)`;
|
||||
|
||||
Reference in New Issue
Block a user