From 79dafa226a396a2b7065a66a6e90aa6b8e30ad6e Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Wed, 6 Jul 2022 01:10:03 +0200
Subject: [PATCH] Cancel editing if clicked on cancel button or outside of
 dialog

---
 .../static/js/vue/components/alsijil/PersonalNotes.js    | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/aleksis/apps/alsijil/static/js/vue/components/alsijil/PersonalNotes.js b/aleksis/apps/alsijil/static/js/vue/components/alsijil/PersonalNotes.js
index c18b15274..37ddb5887 100644
--- a/aleksis/apps/alsijil/static/js/vue/components/alsijil/PersonalNotes.js
+++ b/aleksis/apps/alsijil/static/js/vue/components/alsijil/PersonalNotes.js
@@ -63,6 +63,7 @@ export default {
     <v-dialog
       v-model="dialog"
       max-width="600px"
+      @click:outside="cancelDialog"
     >
       <template v-slot:activator="{ on, attrs }">
         <div>
@@ -104,11 +105,11 @@ export default {
         <v-card-actions>
           <v-spacer></v-spacer>
           <v-btn
-            color="blue darken-1"
-            text
-            @click="dialog = false"
+            color="error"
+            outlined
+            @click="cancelDialog"
           >
-            Close
+            Cancel
           </v-btn>
           <v-btn
             color="blue darken-1"
-- 
GitLab