chore: 🤖 use tracked properties instead of attributes
This commit is contained in:
2 files changed
+7
-21
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import GeneratedSessionModel from '../generated/models/session';
|
||||
import { computed } from '@ember/object';
|
||||
import { equal } from '@ember/object/computed';
|
||||
import { attr } from '@ember-data/model';
|
||||
import { tracked } from '@glimmer/tracking';
|
||||
|
||||
export default class SessionModel extends GeneratedSessionModel {
|
||||
@@ -9,8 +8,8 @@ export default class SessionModel extends GeneratedSessionModel {
|
||||
|
||||
@tracked acknowledged;
|
||||
@tracked started_desktop_client;
|
||||
@attr('string', { readOnly: true }) proxy_address;
|
||||
@attr('number', { readOnly: true }) proxy_port;
|
||||
@tracked proxy_address;
|
||||
@tracked proxy_port;
|
||||
|
||||
@equal('status', 'active') isActive;
|
||||
@equal('status', 'pending') isPending;
|
||||
|
||||
Reference in new issue
Block a user