Skip to content

Commit f85e9b0

Browse files
authored
Merge pull request #10 from nasa/GUUI-3573-subsetter-needs-appropiate-labels
GUUI-3573: subsetter needs appropiate labels
2 parents 768f904 + 0ddd0e5 commit f85e9b0

3 files changed

Lines changed: 234 additions & 220 deletions

File tree

src/components/data-subsetter-history/data-subsetter-history.component.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class TerraDataSubsetterHistory extends TerraElement {
4444
* this prop allows you to override that behavior and always show the history panel
4545
*/
4646
@property({ attribute: 'always-show', type: Boolean })
47-
alwaysShow: boolean
47+
alwaysShow: boolean = true
4848

4949
@state()
5050
collapsed: boolean = true
@@ -87,17 +87,17 @@ export default class TerraDataSubsetterHistory extends TerraElement {
8787
8888
<div class="history-panel">
8989
${hasJobs
90-
? html`
90+
? html`
9191
<div class="history-link-row">
9292
<label>
9393
<input
9494
type="checkbox"
9595
.checked=${this.hideCancelled}
9696
@change=${(e: Event) => {
97-
this.hideCancelled = (
98-
e.target as HTMLInputElement
99-
).checked
100-
}}
97+
this.hideCancelled = (
98+
e.target as HTMLInputElement
99+
).checked
100+
}}
101101
/>
102102
Hide Cancelled
103103
</label>
@@ -117,28 +117,28 @@ export default class TerraDataSubsetterHistory extends TerraElement {
117117
</a>
118118
</div>
119119
`
120-
: nothing}
120+
: nothing}
121121
122122
<div class="history-list">
123123
${jobs
124-
? hasJobs
125-
? this.#renderHistoryItems(jobs)
126-
: html`<div class="history-alert-message">
124+
? hasJobs
125+
? this.#renderHistoryItems(jobs)
126+
: html`<div class="history-alert-message">
127127
You haven't made any requests yet.<br />
128128
Get started by
129129
<a
130130
href="#"
131131
class="history-alert-link"
132132
@click=${(e: Event) => {
133-
e.preventDefault()
134-
this.selectedJob = undefined
135-
this.dialog?.show()
136-
}}
133+
e.preventDefault()
134+
this.selectedJob = undefined
135+
this.dialog?.show()
136+
}}
137137
>
138138
creating your first request!</a
139139
>.
140140
</div>`
141-
: html`<div class="history-alert-message">
141+
: html`<div class="history-alert-message">
142142
Retrieving your requests....
143143
</div>`}
144144
</div>
@@ -178,10 +178,10 @@ export default class TerraDataSubsetterHistory extends TerraElement {
178178
href="#"
179179
class="history-alert-link"
180180
@click=${(e: Event) => {
181-
e.preventDefault()
182-
this.selectedJob = undefined
183-
this.dialog?.show()
184-
}}
181+
e.preventDefault()
182+
this.selectedJob = undefined
183+
this.dialog?.show()
184+
}}
185185
>
186186
create a new request.</a
187187
>
@@ -220,8 +220,8 @@ export default class TerraDataSubsetterHistory extends TerraElement {
220220
<div class="item-header">
221221
<span class="item-title">
222222
${job.labels?.length
223-
? job.labels.join(' ')
224-
: job.request.split('.nasa.gov').pop()}
223+
? job.labels.join(' ')
224+
: job.request.split('.nasa.gov').pop()}
225225
</span>
226226
</div>
227227

0 commit comments

Comments
 (0)