Skip to content

Commit

Permalink
Change terminology Note -> Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Dec 9, 2024
1 parent 612df6c commit 5865181
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/NewBuffer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
},
dialogTitle() {
return this.createBufferParams.mode === "currentBlock" ? "New Note from Block" : "New Note"
return this.createBufferParams.mode === "currentBlock" ? "New Buffer from Block" : "New Buffer"
},
},
Expand Down Expand Up @@ -151,17 +151,17 @@
slug = slugify(this.name + "-" + i)
}
if (this.buffers[path]) {
console.error("Failed to create note, path already exists", path)
console.error("Failed to create buffer, path already exists", path)
this.errors.name = true
return
}
//console.log("Creating note", path, this.createBufferParams)
//console.log("Creating buffer", path, this.createBufferParams)
if (this.createBufferParams.mode === "currentBlock") {
this.createNewBufferFromActiveBlock(path, this.name)
} else if (this.createBufferParams.mode === "new") {
this.createNewBuffer(path, this.name)
} else {
throw new Error("Unknown createNote Mode: " + this.createBufferParams.mode)
throw new Error("Unknown createBuffer Mode: " + this.createBufferParams.mode)
}
this.$emit("close")
Expand All @@ -173,7 +173,7 @@

<template>
<div class="fader" @keydown="onKeydown" tabindex="-1">
<form class="new-note" tabindex="-1" @focusout="onFocusOut" ref="container" @submit.prevent="submit">
<form class="new-buffer" tabindex="-1" @focusout="onFocusOut" ref="container" @submit.prevent="submit">
<div class="container">
<h1>{{ dialogTitle }}</h1>
<input
Expand All @@ -199,7 +199,7 @@
/>
</div>
<div class="bottom-bar">
<button type="submit">Create Note</button>
<button type="submit">Create New Buffer</button>
<button
class="cancel"
@keydown="onCancelKeydown"
Expand All @@ -218,7 +218,7 @@
bottom: 0
right: 0
background: rgba(0,0,0, 0.2)
.new-note
.new-buffer
font-size: 13px
//background: #48b57e
background: #efefef
Expand Down

0 comments on commit 5865181

Please sign in to comment.