Skip to content

Commit

Permalink
fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuchulain committed Apr 12, 2024
1 parent e7450d6 commit 06add73
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<!--
<!--
SPDX-FileCopyrightText: Jan Čejka <posta@jancejka.cz>
SPDX-License-Identifier: AGPL-3.0-or-later
-->
Expand All @@ -22,13 +22,13 @@
icon="icon-close"
@click="cancelNewNote(note)">
{{
t('uloztostorageprovider', 'Cancel note creation') }}
t('uloztostorageprovider', 'Cancel note creation') }}
</ActionButton>
<ActionButton v-else
icon="icon-delete"
@click="deleteNote(note)">
{{
t('uloztostorageprovider', 'Delete note') }}
t('uloztostorageprovider', 'Delete note') }}
</ActionButton>
</template>
</AppNavigationItem>
Expand All @@ -49,8 +49,10 @@
</div>
<div v-else id="emptycontent">
<div class="icon-file" />
<h2>{{
t('uloztostorageprovider', 'Create a note to get started') }}</h2>
<h2>
{{
t('uloztostorageprovider', 'Create a note to get started') }}
</h2>
</div>
</AppContent>
</div>
Expand Down Expand Up @@ -88,7 +90,7 @@ export default {
computed: {
/**
* Return the currently selected note object
* @returns {Object|null}
* @return {object | null}
*/
currentNote() {
if (this.currentNoteId === null) {
Expand All @@ -99,7 +101,7 @@ export default {
/**
* Returns true if a note is selected and its title is not empty
* @returns {Boolean}
* @return {boolean}
*/
savePossible() {
return this.currentNote && this.currentNote.title !== ''
Expand All @@ -122,7 +124,7 @@ export default {
methods: {
/**
* Create a new note and focus the note content field automatically
* @param {Object} note Note object
* @param {object} note Note object
*/
openNote(note) {
if (this.updating) {
Expand Down Expand Up @@ -171,7 +173,7 @@ export default {
},
/**
* Create a new note by sending the information to the server
* @param {Object} note Note object
* @param {object} note Note object
*/
async createNote(note) {
this.updating = true
Expand All @@ -188,7 +190,7 @@ export default {
},
/**
* Update an existing note on the server
* @param {Object} note Note object
* @param {object} note Note object
*/
async updateNote(note) {
this.updating = true
Expand All @@ -202,7 +204,7 @@ export default {
},
/**
* Delete a note, remove it from the frontend and show a hint
* @param {Object} note Note object
* @param {object} note Note object
*/
async deleteNote(note) {
try {
Expand Down

0 comments on commit 06add73

Please sign in to comment.