From b21fd103ea5790805337ff741018e168c89b499b Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 30 May 2023 15:02:20 +0200 Subject: [PATCH] Replace confirm dialogs with custom modals --- src/components/ConfirmModal.vue | 25 +++++++++++++++++ src/components/PlaylistsPage.vue | 40 +++++++++++++++++---------- src/components/PreferencesPage.vue | 15 ++++++++-- src/components/RegisterPage.vue | 20 ++++++++++++-- src/components/VideoItem.vue | 44 +++++++++++++++++------------- src/locales/en.json | 4 ++- 6 files changed, 109 insertions(+), 39 deletions(-) create mode 100644 src/components/ConfirmModal.vue diff --git a/src/components/ConfirmModal.vue b/src/components/ConfirmModal.vue new file mode 100644 index 00000000..d35360b7 --- /dev/null +++ b/src/components/ConfirmModal.vue @@ -0,0 +1,25 @@ + + + diff --git a/src/components/PlaylistsPage.vue b/src/components/PlaylistsPage.vue index a785cc12..99f0280b 100644 --- a/src/components/PlaylistsPage.vue +++ b/src/components/PlaylistsPage.vue @@ -40,7 +40,13 @@ /> + @@ -132,6 +138,7 @@ diff --git a/src/locales/en.json b/src/locales/en.json index e4dba42c..77962fbc 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -135,7 +135,9 @@ "show_more": "Show more", "show_less": "Show less", "create_group": "Create group", - "group_name": "Group name" + "group_name": "Group name", + "cancel": "Cancel", + "confirm": "Confirm" }, "comment": { "pinned_by": "Pinned by {author}",