From 2e3a0048e42c093e1fafd451cad1347d29371b18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Marseault?=
<22910497+Larsluph@users.noreply.github.com>
Date: Wed, 15 Feb 2023 16:15:28 +0100
Subject: [PATCH] perf : Add shutdown confirmation modal + moved to
NavbarActions (#655) @Larsluph
---
.../Modals/ConfirmShutdownModal.vue | 59 +++++++++++++++++++
src/components/Navbar/NavbarActions.vue | 22 +++++--
src/components/Navbar/TopActions.vue | 20 -------
src/lang/en.json | 10 +++-
src/lang/fr.json | 7 +++
5 files changed, 91 insertions(+), 27 deletions(-)
create mode 100644 src/components/Modals/ConfirmShutdownModal.vue
diff --git a/src/components/Modals/ConfirmShutdownModal.vue b/src/components/Modals/ConfirmShutdownModal.vue
new file mode 100644
index 00000000..ccfe54c5
--- /dev/null
+++ b/src/components/Modals/ConfirmShutdownModal.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+ {{ $t('modals.shutdown.title') }}
+
+
+
+
+
+
+ {{ $t('modals.shutdown.content') }}
+
+
+
+
+
+
+
+
+ {{ $t('yes') }}
+
+
+ {{ $t('no') }}
+
+
+
+
+
+
+
diff --git a/src/components/Navbar/NavbarActions.vue b/src/components/Navbar/NavbarActions.vue
index 132cc614..5c1222ac 100644
--- a/src/components/Navbar/NavbarActions.vue
+++ b/src/components/Navbar/NavbarActions.vue
@@ -39,25 +39,40 @@
{{ theme }}
+
+
+
+
+
+ {{ mdiPower }}
+
+
+
+ {{ $t('shutdownApp') }}
+
+