mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Update user.tag
This commit is contained in:
parent
5db5f0f074
commit
593f3d9231
@ -34,18 +34,21 @@
|
||||
<script>
|
||||
this.mixin('api');
|
||||
|
||||
this.username = this.opts.user
|
||||
this.page = if this.opts.page? then this.opts.page else 'home'
|
||||
this.fetching = true
|
||||
this.user = null
|
||||
this.username = this.opts.user;
|
||||
this.page = this.opts.page ? this.opts.page : 'home';
|
||||
this.fetching = true;
|
||||
this.user = null;
|
||||
|
||||
this.on('mount', () => {
|
||||
this.api('users/show', {
|
||||
username: this.username
|
||||
}).then((user) => {
|
||||
this.fetching = false
|
||||
this.user = user
|
||||
this.update();
|
||||
}).then(user => {
|
||||
this.update({
|
||||
fetching: false,
|
||||
user: user
|
||||
});
|
||||
this.trigger('loaded');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</mk-user>
|
||||
|
Loading…
Reference in New Issue
Block a user