akveo / akveo/nebular

[Chat UI] message input "date" should allow for different date formatting

Đang mở
#1,621 7 bình luận 3 reaction 0 người được giao Xem trên GitHub
enhancement module:components P2: important
Ngôn ngữ chính
TypeScript
Star
8.1k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Issue type

**I'm submitting a ...** (check one with "x")

* [ ] bug report
* [x] feature request

### Issue description

**Current behavior:**

I saw in https://github.com/akveo/nebular/blob/master/src/framework/theme/components/chat/chat-message-text.component.ts#L15 that the `date` input into `nb-chat-message` is always piped into `shortTime`. This is confusing if the messages span multiple days. Can something like `datePipeFormat: string` (https://angular.io/api/common/DatePipe#pre-defined-format-options) be added as an input as well?

**Expected behavior:**

The chat messages would display the date as well to prevent confusing over messages spanning multiple days.

**Steps to reproduce:**

Add messages to `nb-chat-message` where the dates span multiple days.

### Other information:

**npm, node, OS, Browser**
```

```

```
node --version
v10.16.0

npm --version
6.9.0

OS: macOS Mojave
Browser: Chrome
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.