Commit 4cc30d67ab2fb4e8d20b9119e9e8b6a37ef09f81
use @ KEY... format for missing key names
Matt McKegg committed on 10/19/2017, 4:47:51 AMParent: a6714b555b835f7ff3d98bee676b807e65593503
Files changed
modules/profile/sheet/edit.js | changed |
plugs/about/sync/short-feed-id.js | added |
modules/profile/sheet/edit.js | ||
---|---|---|
@@ -17,8 +17,9 @@ | ||
17 | 17 | }, |
18 | 18 | 'blob.html.input': 'first', |
19 | 19 | 'blob.sync.url': 'first', |
20 | 20 | 'intl.sync.i18n': 'first', |
21 | + 'about.sync.shortFeedId': 'first' | |
21 | 22 | }) |
22 | 23 | |
23 | 24 | exports.create = function (api) { |
24 | 25 | const i18n = api.intl.sync.i18n |
@@ -32,9 +33,9 @@ | ||
32 | 33 | var publishing = Value(false) |
33 | 34 | var chosenImage = Value(currentImage()) |
34 | 35 | |
35 | 36 | // don't display if name is default |
36 | - var chosenName = Value(currentName() === id.slice(1, 10) ? '' : currentName()) | |
37 | + var chosenName = Value(currentName() === api.about.sync.shortFeedId(id) ? '' : currentName()) | |
37 | 38 | var chosenDescription = Value(currentDescription()) |
38 | 39 | |
39 | 40 | return { |
40 | 41 | content: h('div', { |
Built with git-ssb-web