43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
|
<script>
|
|
component.exports = {
|
|
computed: {
|
|
tabs () {
|
|
return Object.keys(this.get('data.supplies'))
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<ui-notice>
|
|
{{#if data.siliconUser }}
|
|
<ui-section label='Interface Lock'>
|
|
<ui-button icon='{{data.locked ? "lock" : "unlock"}}' action='lock'>{{data.locked ? "Engaged" : "Disengaged"}}</ui-button>
|
|
</ui-section>
|
|
{{else}}
|
|
<span>Swipe a QM-Level ID card to {{data.locked ? "unlock" : "lock"}} this interface.</span>
|
|
{{/if}}
|
|
</ui-notice>
|
|
|
|
{{#if !data.locked }}
|
|
<ui-display title='Express Cargo Console'>
|
|
<ui-section label='Credits'>
|
|
<span>{{Math.floor(adata.points)}}</span>
|
|
</ui-section>
|
|
|
|
<ui-section label='Notice'>
|
|
<span>{{data.message}}</span>
|
|
</ui-section>
|
|
</ui-display>
|
|
<ui-tabs tabs='{{tabs}}'>
|
|
{{#each data.supplies}}
|
|
<tab name='{{name}}'>
|
|
{{#each packs}}
|
|
<ui-section label='{{name}}' candystripe right>
|
|
<ui-button action='add' params='{"id": "{{id}}"}'>{{cost}} Credits (Premium Pricing)</ui-button>
|
|
</ui-section>
|
|
{{/each}}
|
|
</tab>
|
|
{{/each}}
|
|
</ui-tabs>
|
|
{{/if}} |