Feature: new "report a bug" modal (#13530)
* WIP: report a bug api/ui * fix lint * add USER_USERNAME * extend sendTxn tests / checks + fix bug report email * fix lint * add more checks to sendTxn - fix bug-report variables * fix lint / ci * fix test: reset email config url * fix test stub * fix tests * refactor the variables checks * lint. * move bug-report page as a modal * send user_email to the email * show true/false instead 1/0 * fix issues * fix footer report bug email if not logged in * fix styles/margins * prefill user's email * show facebook email if local email not existing * bugReportSuccessModal.vue * add BROWSER_UA to mail properties * extract bugReportLogic to its own lib file for unit test * test api validators * fix lint
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
<button
|
||||
title="close dialog"
|
||||
@click="$emit('click', $event)"
|
||||
:style="{
|
||||
'--icon-color': iconColor,
|
||||
'--icon-color-hover': iconColorHover,
|
||||
}"
|
||||
:class="{'purple': purple}"
|
||||
>
|
||||
<div
|
||||
v-once
|
||||
@@ -16,6 +21,7 @@ import svgClose from '@/assets/svg/close.svg';
|
||||
|
||||
export default {
|
||||
name: 'CloseIcon',
|
||||
props: ['iconColor', 'iconColorHover', 'purple'],
|
||||
data () {
|
||||
return {
|
||||
icons: Object.freeze({
|
||||
@@ -43,13 +49,18 @@ export default {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
|
||||
&.purple {
|
||||
--icon-color: #{$purple-400};
|
||||
--icon-color-hover: #{$purple-500};
|
||||
}
|
||||
|
||||
::v-deep svg path {
|
||||
stroke: $gray-200;
|
||||
stroke: var(--icon-color, #{$gray-200});
|
||||
}
|
||||
|
||||
&:hover {
|
||||
::v-deep svg path {
|
||||
stroke: $gray-100;
|
||||
stroke: var(--icon-color-hover, #{$gray-100});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user