@wikala/spmkt 2.29.4 → 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.
@@ -0,0 +1,10 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(grep:*)",
5
+ "Bash(head:*)",
6
+ "Bash(git -C /Users/svp/projects/fe-supermarket log --all --name-only --oneline api/index.js)",
7
+ "Bash(git -C /Users/svp/projects/fe-supermarket status --short)"
8
+ ]
9
+ }
10
+ }
@@ -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.close') }}</b-button>
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.close') }}</b-button>
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
  }
@@ -147,6 +147,9 @@ export default {
147
147
  setArrowsVisibility(collectionIndex) {
148
148
  let leftArrow = document.querySelector('.userimg-gallery div.carousel-arrow > span.icon.has-icons-left')
149
149
  let rightArrow = document.querySelector('.userimg-gallery div.carousel-arrow > span.icon.has-icons-right')
150
+ if(!leftArrow || !rightArrow) {
151
+ return
152
+ }
150
153
  if (collectionIndex === 0) {
151
154
  leftArrow.style.visibility = 'hidden'
152
155
  } else {
@@ -159,6 +162,13 @@ export default {
159
162
  }
160
163
  },
161
164
 
165
+ attachModalToBody() { //fixes z-index issues
166
+ const modal = document.getElementsByClassName('modal');
167
+ if(modal.length) {
168
+ document.body.insertAdjacentElement('afterbegin', modal[0])
169
+ }
170
+ },
171
+
162
172
  async carouselChange(e) {
163
173
  this.collectionIndex = e
164
174
  this.reviewImageIndex = 0
@@ -181,6 +191,7 @@ export default {
181
191
  this.carouselModal = true
182
192
  this.$nextTick(() => {
183
193
  this.setArrowsVisibility(collection_idx)
194
+ this.attachModalToBody()
184
195
  })
185
196
  },
186
197
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikala/spmkt",
3
- "version": "2.29.4",
3
+ "version": "2.29.6",
4
4
  "private": false,
5
5
  "description": "supermarket",
6
6
  "scripts": {