Sha256: 1edf00e6549d6e8028a834b055ea5d585f5627030b94116cd11bd16ff42a6abf
Contents?: true
Size: 629 Bytes
Versions: 36
Compression:
Stored size: 629 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
36 entries across 36 versions & 1 rubygems