Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <single-checkbox class="checkbox "
  2. inputId="card.data.id"
  3. v-if="card.data.id"
  4. @change="change(card.data)"
  5. :value="card.data.selected"
  6. :disabled="!card.data.licenseEnabled">
  7.  
  8.  
  9.  
  10. selectAll() {
  11. for (let i = 0; i < this.cards.length; i += 1) {
  12. if (this.cards[i].selected !== undefined) {
  13. this.cards[i].selected = true;
  14. }
  15. },
  16.  
  17.  
  18. default() {
  19. const currentRoute = this.$route.path;
  20. for (let i = 0; i < this.features.length; i += 1) {
  21. if (currentRoute.includes('/admin/users/usergroup/add/')) {
  22. this.features[i].selected = true;
  23. } else {
  24. this.features[i].selected = false;
  25. }
  26. }
  27. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement