Merge Boundary UI OSS branch 'main' at commit 82bee429

This commit is contained in:
github-team-secure-boundary committed 2023-02-03 22:54:02 +00:00
commit b33c37a8a3
3 files changed
+14 -1

No files matched your search

@@ -45,6 +45,8 @@ export default class extends Helper {
// =methods
compute([date]) {
if (!date) return;
const delta = date.valueOf() - this.clockTick.now;
const greatestMeaningfulUnit = unitMappings.reduce(
(currentValue, previousValue) => {
@@ -53,4 +53,12 @@ module('Integration | Helper | relative-datetime-live', function (hooks) {
await render(hbs`{{relative-datetime-live this.date}}`);
assert.dom(this.element).hasText('in 22 years');
});
test('it renders nothing when there is no date', async function (assert) {
assert.expect(1);
this.date = null;
await render(hbs`{{relative-datetime-live this.date}}`);
assert.dom(this.element).hasText('');
});
});
@@ -99,7 +99,10 @@
<form.input
@name='last seen'
@type='datetime'
@value={{concat relativeDate ', ' customFormat}}
@value={{if
@model.last_status_time
(concat relativeDate ', ' customFormat)
}}
@label={{t 'form.worker_last_seen.label'}}
@helperText={{t 'form.worker_last_seen.help'}}
@disabled={{true}}