Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: open users with skill filter #5047

Merged
merged 3 commits into from
Aug 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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