UX: Bump limit for "view older notification" link.

This commit is contained in:
Guo Xiang Tan 2016-11-19 08:11:23 +08:00
parent c97614bcd2
commit c86588469f
1 changed files with 3 additions and 2 deletions

View File

@ -64,13 +64,14 @@ export default createWidget('user-notifications', {
} else if (state.notifications.length) { } else if (state.notifications.length) {
const notificationItems = state.notifications.map(n => this.attach('notification-item', n)); const notificationItems = state.notifications.map(n => this.attach('notification-item', n));
const href = `${attrs.path}/notifications`;
result.push(h('hr')); result.push(h('hr'));
const items = [notificationItems]; const items = [notificationItems];
if (notificationItems.length > 0) { if (notificationItems.length > 5) {
const href = `${attrs.path}/notifications`;
items.push( items.push(
h('li.read.last.heading', h('a', { attributes: { href } }, [I18n.t('notifications.more'), '...'])), h('li.read.last.heading', h('a', { attributes: { href } }, [I18n.t('notifications.more'), '...'])),
h('hr') h('hr')