mirror of
https://github.com/heyman/heynote.git
synced 2025-01-18 03:48:18 +01:00
Change terminology Note -> Buffer
This commit is contained in:
parent
612df6c851
commit
5865181d98
@ -91,7 +91,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
dialogTitle() {
|
dialogTitle() {
|
||||||
return this.createBufferParams.mode === "currentBlock" ? "New Note from Block" : "New Note"
|
return this.createBufferParams.mode === "currentBlock" ? "New Buffer from Block" : "New Buffer"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -151,17 +151,17 @@
|
|||||||
slug = slugify(this.name + "-" + i)
|
slug = slugify(this.name + "-" + i)
|
||||||
}
|
}
|
||||||
if (this.buffers[path]) {
|
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
|
this.errors.name = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//console.log("Creating note", path, this.createBufferParams)
|
//console.log("Creating buffer", path, this.createBufferParams)
|
||||||
if (this.createBufferParams.mode === "currentBlock") {
|
if (this.createBufferParams.mode === "currentBlock") {
|
||||||
this.createNewBufferFromActiveBlock(path, this.name)
|
this.createNewBufferFromActiveBlock(path, this.name)
|
||||||
} else if (this.createBufferParams.mode === "new") {
|
} else if (this.createBufferParams.mode === "new") {
|
||||||
this.createNewBuffer(path, this.name)
|
this.createNewBuffer(path, this.name)
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Unknown createNote Mode: " + this.createBufferParams.mode)
|
throw new Error("Unknown createBuffer Mode: " + this.createBufferParams.mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit("close")
|
this.$emit("close")
|
||||||
@ -173,7 +173,7 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="fader" @keydown="onKeydown" tabindex="-1">
|
<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">
|
<div class="container">
|
||||||
<h1>{{ dialogTitle }}</h1>
|
<h1>{{ dialogTitle }}</h1>
|
||||||
<input
|
<input
|
||||||
@ -199,7 +199,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom-bar">
|
<div class="bottom-bar">
|
||||||
<button type="submit">Create Note</button>
|
<button type="submit">Create New Buffer</button>
|
||||||
<button
|
<button
|
||||||
class="cancel"
|
class="cancel"
|
||||||
@keydown="onCancelKeydown"
|
@keydown="onCancelKeydown"
|
||||||
@ -218,7 +218,7 @@
|
|||||||
bottom: 0
|
bottom: 0
|
||||||
right: 0
|
right: 0
|
||||||
background: rgba(0,0,0, 0.2)
|
background: rgba(0,0,0, 0.2)
|
||||||
.new-note
|
.new-buffer
|
||||||
font-size: 13px
|
font-size: 13px
|
||||||
//background: #48b57e
|
//background: #48b57e
|
||||||
background: #efefef
|
background: #efefef
|
||||||
|
Loading…
Reference in New Issue
Block a user