Commit b02130afe26d1db8fb81cc8a4bf983e79fc85d54
label "preview & publish" on profile editor and alert if nothing to preview
Matt McKegg committed on 6/25/2018, 1:50:09 AMParent: 7e44e13afc44b6b906290606afe84a7c45b33eff
Files changed
modules/profile/sheet/edit.js | changed |
modules/profile/sheet/edit.js | ||
---|---|---|
@@ -82,9 +82,9 @@ | ||
82 | 82 | footer: [ |
83 | 83 | h('button -save', { |
84 | 84 | 'ev-click': save, |
85 | 85 | 'disabled': publishing |
86 | - }, when(publishing, i18n('Publishing...'), i18n('Publish'))), | |
86 | + }, when(publishing, i18n('Publishing...'), i18n('Preview & Publish'))), | |
87 | 87 | h('button -cancel', { |
88 | 88 | 'disabled': publishing, |
89 | 89 | 'ev-click': close |
90 | 90 | }, i18n('Cancel')) |
@@ -122,8 +122,15 @@ | ||
122 | 122 | close() |
123 | 123 | } |
124 | 124 | }) |
125 | 125 | } else { |
126 | + showDialog({ | |
127 | + type: 'info', | |
128 | + title: i18n('Update Profile'), | |
129 | + buttons: [i18n('OK')], | |
130 | + message: i18n('Nothing to publish'), | |
131 | + detail: i18n('You have not made any changes.') | |
132 | + }) | |
126 | 133 | close() |
127 | 134 | } |
128 | 135 | } |
129 | 136 | }) |
Built with git-ssb-web