Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121716386
shell.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 13, 09:41
Size
644 B
Mime Type
text/x-java
Expires
Tue, Jul 15, 09:41 (2 d)
Engine
blob
Format
Raw Data
Handle
27379159
Attached To
R2664 SHRINE MedCo Fork
shell.js
View Options
import
{
inject
}
from
'aurelia-framework'
;
import
{
EventAggregator
}
from
'aurelia-event-aggregator'
;
import
{
I2B2PubSub
}
from
'common/i2b2.pub-sub'
;
import
{
QueriesModel
}
from
'common/queries.model'
;
import
{
notifications
}
from
'common/shrine.messages'
;
@
inject
(
EventAggregator
,
I2B2PubSub
,
QueriesModel
,
notifications
)
export
class
Shell
{
constructor
(
evtAgg
,
i2b2PubSub
,
queries
,
notifications
)
{
Shell
.
prototype
.
init
=
()
=>
{
this
.
view
=
'query-viewer'
;
}
this
.
init
();
i2b2PubSub
.
listen
();
queries
.
load
();
evtAgg
.
subscribe
(
notifications
.
i2b2
.
viewSelected
,
v
=>
{
this
.
view
=
v
;
});
}
}
Event Timeline
Log In to Comment