From 85c8171aa840a5f861507be2a7802a4091aeec34 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Thu, 25 Nov 2021 11:37:23 +0530 Subject: [PATCH] refactor: use smart confirm modal instead of native confirm modal --- .../hoppscotch-app/components/teams/Team.vue | 24 ++++++++++++++----- packages/hoppscotch-app/locales/af.json | 1 + packages/hoppscotch-app/locales/ar.json | 1 + packages/hoppscotch-app/locales/ca.json | 1 + packages/hoppscotch-app/locales/cn.json | 1 + packages/hoppscotch-app/locales/cs.json | 1 + packages/hoppscotch-app/locales/da.json | 1 + packages/hoppscotch-app/locales/de.json | 1 + packages/hoppscotch-app/locales/el.json | 1 + packages/hoppscotch-app/locales/en.json | 1 + packages/hoppscotch-app/locales/es.json | 1 + packages/hoppscotch-app/locales/fi.json | 1 + packages/hoppscotch-app/locales/fr.json | 1 + packages/hoppscotch-app/locales/he.json | 1 + packages/hoppscotch-app/locales/hu.json | 1 + packages/hoppscotch-app/locales/it.json | 1 + packages/hoppscotch-app/locales/ja.json | 1 + packages/hoppscotch-app/locales/ko.json | 1 + packages/hoppscotch-app/locales/nl.json | 1 + packages/hoppscotch-app/locales/no.json | 1 + packages/hoppscotch-app/locales/pl.json | 1 + packages/hoppscotch-app/locales/pt-br.json | 1 + packages/hoppscotch-app/locales/pt.json | 1 + packages/hoppscotch-app/locales/ro.json | 1 + packages/hoppscotch-app/locales/ru.json | 1 + packages/hoppscotch-app/locales/sr.json | 1 + packages/hoppscotch-app/locales/sv.json | 1 + packages/hoppscotch-app/locales/tr.json | 1 + packages/hoppscotch-app/locales/tw.json | 1 + packages/hoppscotch-app/locales/uk.json | 1 + packages/hoppscotch-app/locales/vi.json | 1 + 31 files changed, 48 insertions(+), 6 deletions(-) diff --git a/packages/hoppscotch-app/components/teams/Team.vue b/packages/hoppscotch-app/components/teams/Team.vue index e3b598e3d..fe472548a 100644 --- a/packages/hoppscotch-app/components/teams/Team.vue +++ b/packages/hoppscotch-app/components/teams/Team.vue @@ -90,7 +90,7 @@ :label="t('action.delete')" @click.native=" () => { - deleteTeam() + confirmRemove = true $refs.options.tippy().hide() } " @@ -101,7 +101,7 @@ :label="t('team.exit')" @click.native=" () => { - exitTeam() + confirmExit = true $refs.options.tippy().hide() } " @@ -109,10 +109,23 @@ + +