Skip to content

Commit

Permalink
Merge pull request #318 from Kitware/girder-logout
Browse files Browse the repository at this point in the history
fix(GirderBox): Add logout
  • Loading branch information
floryst authored Apr 16, 2020
2 parents 708db10 + d5fb3e7 commit fd2528d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/core/GirderBox/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,8 @@ export default {
url.search = params.toString();
window.location.href = url.toString();
},
logout() {
this.girderRest.logout();
},
},
};
9 changes: 9 additions & 0 deletions src/components/core/GirderBox/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
>
Update
</v-btn>
<v-btn
v-if="!loggedOut"
class="ml-2"
tile
color="secondary"
@click="logout"
>
Log out
</v-btn>
</v-row>
<v-row>
<v-col v-if="loggedOut">
Expand Down

0 comments on commit fd2528d

Please sign in to comment.