Skip to content

Commit

Permalink
feat: open users with skill filter (#5047)
Browse files Browse the repository at this point in the history
* feat: open users with skill filter

* reactive data and dynamic filter

* missing semicolon
  • Loading branch information
thelostone-mc authored Aug 21, 2019
1 parent e7c0dfb commit 9c58a67
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion app/assets/v2/js/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ Vue.mixin({
_alert('The invitation has been sent', 'info');
}
});

},
closeModal() {
this.$refs['user-modal'].closeModal();
Expand All @@ -143,6 +142,22 @@ Vue.mixin({
}
});
}
},
extractURLFilters: function() {
let vm = this;
let params = getURLParams();

vm.users = [];

if (params) {
for (var prop in params) {
if (prop === 'skills') {
vm.$set(vm.params, prop, params[prop].split(','));
} else {
vm.$set(vm.params, prop, params[prop]);
}
}
}
}
}
});
Expand Down Expand Up @@ -185,6 +200,7 @@ if (document.getElementById('gc-users-directory')) {
created() {
this.fetchBounties();
this.inviteOnMount();
this.extractURLFilters();
},
beforeMount() {
window.addEventListener('scroll', () => {
Expand Down

0 comments on commit 9c58a67

Please sign in to comment.