Skip to content

Commit

Permalink
gsuiDAW: login/logout
Browse files Browse the repository at this point in the history
  • Loading branch information
mr21 committed Oct 25, 2024
1 parent 77bbf3c commit cda980f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gsuiDAW/gsuiDAW.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,22 @@ class gsuiDAW extends gsui0ne {
this.#popups.auth.root.querySelectorAll( "input" ).forEach( inp => inp.value = "" );
} );
}
$login( u ) {
GSUsetAttribute( this.$elements.$titleUser, {
name: `${ u.firstname } ${ u.lastname }`,
avatar: u.avatar,
username: u.username,
connected: true,
} );
}
$logout() {
GSUsetAttribute( this.$elements.$titleUser, {
name: false,
avatar: false,
username: false,
connected: false,
} );
}

// .........................................................................
#updateDuration() {
Expand Down

0 comments on commit cda980f

Please sign in to comment.