@burh/nuxt-core 1.1.21 → 1.1.22

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.
@@ -24,7 +24,7 @@
24
24
  </span>
25
25
  <el-dropdown-menu slot="dropdown">
26
26
  <el-dropdown-item
27
- v-for="(tab, index) in moveToItems"
27
+ v-for="(tab, index) in moveToItemsList"
28
28
  :key="index"
29
29
  @click.native="$emit(tool.event, tab)"
30
30
  >
@@ -286,7 +286,31 @@ export default {
286
286
  },
287
287
  moveToItems: {
288
288
  type: Array,
289
- default: () => [
289
+ default: () => []
290
+ }
291
+ },
292
+ components: {
293
+ ElDropdown: Dropdown,
294
+ ElDropdownMenu: DropdownMenu,
295
+ ElDropdownItem: DropdownItem,
296
+ MuxVideo
297
+ },
298
+ data() {
299
+ return {
300
+ isLocked: !this.companyHasProduct(
301
+ this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['INTERACAO_USUARIO'] || false
302
+ ),
303
+ unlockedButtons: ['share', 'moveTo'],
304
+ isCvDownloading: false
305
+ };
306
+ },
307
+ computed: {
308
+ moveToItemsList() {
309
+ if (this.moveToItems.length > 0) {
310
+ return this.moveToItems;
311
+ }
312
+
313
+ return [
290
314
  {
291
315
  id: 1,
292
316
  name: 'applieds',
@@ -307,24 +331,9 @@ export default {
307
331
  name: 'other',
308
332
  title: this.$t('user_cv.middle_side.move_to_rejected')
309
333
  }
310
- ]
334
+ ];
311
335
  }
312
336
  },
313
- components: {
314
- ElDropdown: Dropdown,
315
- ElDropdownMenu: DropdownMenu,
316
- ElDropdownItem: DropdownItem,
317
- MuxVideo
318
- },
319
- data() {
320
- return {
321
- isLocked: !this.companyHasProduct(
322
- this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['INTERACAO_USUARIO'] || false
323
- ),
324
- unlockedButtons: ['share', 'moveTo'],
325
- isCvDownloading: false
326
- };
327
- },
328
337
  mounted() {
329
338
  this.userData.user_experience = this.filterByDate(
330
339
  this.userData.user_experience,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "private": false,