Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Fixes#80 - Source Field added #111

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ <h2 class="text-red" v-if="displayDupError">Oh sorry, you can't have duplicated
</b-input>
</b-field>

<b-field horizontal label="Source">
<b-input
type="url"
ref="noteSource"
v-model="note.sourceUrl"
placeholder="Source URL">
</b-input>
</b-field>

<b-field v-if="!gistsSelected" horizontal label="Tags">
<b-taginput
v-model="note.tags"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default {
name: '',
description: '',
files: {},
sourceUrl: '',
public: false,
updatedAt: null,
createdAt: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ <h2 class="text-red" v-if="displayDupError">Oh sorry, you can't have duplicated
</b-input>
</b-field>

<b-field horizontal label="Source">
<b-input
type="url"
ref="noteSource"
v-model="note.sourceUrl"
placeholder="Source URL">
</b-input>
</b-field>

<b-field v-if="!gistsSelected" horizontal label="Tags">
<b-taginput
v-model="note.tags"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
noteUpdated: {
name: '',
description: '',
sourceUrl: '',
files: {},
updatedAt: null,
createdAt: null,
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/components/notes-list/note-card/NoteCard.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ <h3 v-else>{{ note.name }}</h3>
<a id="link-note" v-if="gistsSelected" @click="open(note.url)" title="Show on Github">
<b-icon icon="github"></b-icon>
</a>
<a id="note-source" v-if="note.sourceUrl" @click="open(note.sourceUrl)" title="Source">
<b-icon icon="link"></b-icon>
</a>
<a id="update-note" @click="updateNoteModalActive = true" title="Edit note">
<b-icon icon="pencil"></b-icon>
</a>
Expand Down