Skip to content

Commit 6d9a3cf

Browse files
committed
improvements of info icon
1 parent 944ad9a commit 6d9a3cf

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/Vocabulary/VInput.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
>{{ label }}
1313
<span
1414
v-if="rightIcon"
15+
@click="openModalFunction"
1516
>
1617
<img
1718
class="info"
1819
src="../assets/info.svg"
1920
alt="Info"
20-
@click="openModal=true"
2121
>
2222
<app-modal
2323
v-if="openModal==true"
2424
:title="$t(`help.context-for-creator-name.heading`)"
25-
@close="openModal=false"
25+
@close="closeModalFunction"
2626
>
2727
<section class="modal-body">
2828
<section
29-
:class="['modal-content','modal-']"
29+
:class="['modal-content','modal-0']"
3030
>
3131
<article
3232
v-html="$t(`help.context-for-creator-name.text`)">
@@ -127,6 +127,7 @@ export default {
127127
data() {
128128
return {
129129
localValue: this.value,
130+
openModal: false,
130131
}
131132
},
132133
computed: {
@@ -156,6 +157,13 @@ export default {
156157
this.localValue = event.target.value
157158
this.computedValue = event.target.value
158159
},
160+
openModalFunction() {
161+
this.openModal=true
162+
},
163+
closeModalFunction() {
164+
this.openModal = false
165+
return this.openModal
166+
},
159167
},
160168
}
161169
// <!--'', is-medium, is-large in vocabulary; normal, big, huge in DL-->

src/components/AttributionDetailsStep.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ export default {
5050
},
5151
},
5252
},
53-
data() {
54-
return {
55-
openModal: false,
56-
}
57-
},
5853
computed: {
5954
...mapState(['attributionDetails', 'currentLicenseAttributes']),
6055
creatorName: {

0 commit comments

Comments
 (0)