change post-header to use humanReadable instead of title
@@ -12,7 +12,6 @@ import { connect2Redux } from "../won-utils.js";
import { selectLastUpdateTime } from "../selectors.js";
import won from "../won-es6.js";
import { classOnComponentRoot } from "../cstm-ng-utils.js";
-import { getHumanReadableStringFromNeed } from "../reducers/need-reducer/parse-need.js";
const serviceDependencies = ["$ngRedux", "$scope", "$element"];
function genComponentConf() {
@@ -27,10 +26,10 @@ function genComponentConf() {
</won-square-image>
<div class="ph__right" ng-if="!self.need.get('isBeingCreated') && !self.isLoading()">
<div class="ph__right__topline">
- <div class="ph__right__topline__title" ng-if="self.needHumanReadableString">
- {{ self.needHumanReadableString }}
+ <div class="ph__right__topline__title" ng-if="self.need.get('humanReadable')">
+ {{ self.need.get('humanReadable') }}
</div>
- <div class="ph__right__topline__notitle" ng-if="!self.needHumanReadableString">
+ <div class="ph__right__topline__notitle" ng-if="!self.need.get('humanReadable')">
no title
</div>
</div>
@@ -46,7 +45,7 @@ function genComponentConf() {
<div class="ph__right" ng-if="self.need.get('isBeingCreated')">
<div class="ph__right__topline">
- <div class="ph__right__topline__notitle>
+ <div class="ph__right__topline__notitle">
Creating...
</div>
</div>
@@ -75,12 +74,9 @@ function genComponentConf() {
this.WON = won.WON;
const selectFromState = state => {
const need = state.getIn(["needs", this.needUri]);
- const needHumanReadableString =
- need && getHumanReadableStringFromNeed(need);
return {
need,
- needHumanReadableString,
friendlyTimestamp:
need &&
relativeTime(
