@wikala/spmkt 2.29.5 → 2.29.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
</section>
|
|
93
93
|
<footer class="modal-card-foot">
|
|
94
94
|
<b-button :loading="loading" type="is-primary" @click="askQuestion">{{ $t('review.question.askQuestion') }}</b-button>
|
|
95
|
-
<b-button class="button" type="button" @click="questionModal = false">{{ $t('global.
|
|
95
|
+
<b-button class="button" type="button" @click="questionModal = false">{{ $t('global.cancel') }}</b-button>
|
|
96
96
|
</footer>
|
|
97
97
|
</div>
|
|
98
98
|
</form>
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
</section>
|
|
112
112
|
<footer class="modal-card-foot">
|
|
113
113
|
<b-button :loading="loading" type="is-primary" @click="postReply">{{ $t('review.question.submitAnswer') }}</b-button>
|
|
114
|
-
<b-button class="button" type="button" @click="answerModal = false">{{ $t('global.
|
|
114
|
+
<b-button class="button" type="button" @click="answerModal = false">{{ $t('global.cancel') }}</b-button>
|
|
115
115
|
</footer>
|
|
116
116
|
</div>
|
|
117
117
|
</form>
|
|
@@ -195,9 +195,19 @@ export default {
|
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
|
|
198
|
+
attachModalToBody() { //fixes z-index issues
|
|
199
|
+
const modal = document.getElementsByClassName('modal');
|
|
200
|
+
if(modal.length) {
|
|
201
|
+
document.body.insertAdjacentElement('afterbegin', modal[0])
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
|
|
198
205
|
openQuestion() {
|
|
199
206
|
if (this.initialState.user) {
|
|
200
207
|
this.questionModal = true
|
|
208
|
+
this.$nextTick(() => {
|
|
209
|
+
this.attachModalToBody()
|
|
210
|
+
})
|
|
201
211
|
} else {
|
|
202
212
|
this.openModal('Login')
|
|
203
213
|
}
|
|
@@ -164,15 +164,9 @@ export default {
|
|
|
164
164
|
|
|
165
165
|
attachModalToBody() { //fixes z-index issues
|
|
166
166
|
const modal = document.getElementsByClassName('modal');
|
|
167
|
-
let fModal = null;
|
|
168
167
|
if(modal.length) {
|
|
169
|
-
|
|
168
|
+
document.body.insertAdjacentElement('afterbegin', modal[0])
|
|
170
169
|
}
|
|
171
|
-
const carouselColumns = fModal.querySelector('.carousel-items .columns');
|
|
172
|
-
if(carouselColumns) {
|
|
173
|
-
carouselColumns.style.backgroundColor = '#fff';
|
|
174
|
-
}
|
|
175
|
-
document.body.insertAdjacentElement('afterbegin', fModal)
|
|
176
170
|
},
|
|
177
171
|
|
|
178
172
|
async carouselChange(e) {
|