Skip to content

Commit

Permalink
advanced navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
bkawk committed Dec 4, 2018
1 parent 908ba1a commit 7990665
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/routes/dashboard/sharedrop-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ class SharedropRoute extends PolymerElement {
_routeChanged(){
this.securityCode = "";
this._getCode();
this.advanced = false;
this.started = false;
const location = this.route.path.split("/");
if(location[2] === 'sharedrop'){
Expand Down Expand Up @@ -335,21 +334,7 @@ class SharedropRoute extends PolymerElement {
})
}

_startAdvanved(){
this.advanced = true;
const token = localStorage.getItem("token");
const url = `${this.apiPath}/user/security/`;
fetch(url, {
method: 'GET',
headers:{'Content-Type': 'application/json', 'Authorization': `Bearer ${token}`}
})
.then((response) => {return response.json()})
.then((response) => {
if(response && response.data === true && response.security_code){
this.securityCode = response.security_code;
}
})
}


_getCode(){
const token = localStorage.getItem("token");
Expand Down

0 comments on commit 7990665

Please sign in to comment.