Sha256: eb59b96aa6ba2dd40b81e6259a9dad21996c4a8ff1be299917d233efefacee7d
Contents?: true
Size: 654 Bytes
Versions: 9
Compression:
Stored size: 654 Bytes
Contents
import Component from "@ember/component"; import { formatTime } from "client-app/lib/utilities"; import { computed } from "@ember/object"; export default Component.extend({ tagName: "span", classNames: "auto-update-time", attributeBindings: ["dataTimestamp:data-timestamp", "title"], title: computed(function() { return this.get("moment").format(); }), dataTimestamp: computed(function() { return this.get("timestamp"); }), moment: computed(function() { return moment(this.get("timestamp")); }), time: computed("timestamp", function() { return formatTime(this.get("timestamp")); }) });
Version data entries
9 entries across 9 versions & 1 rubygems