git ssb

10+

Matt McKegg / patchwork



Commit b02130afe26d1db8fb81cc8a4bf983e79fc85d54

label "preview & publish" on profile editor and alert if nothing to preview

Matt McKegg committed on 6/25/2018, 1:50:09 AM
Parent: 7e44e13afc44b6b906290606afe84a7c45b33eff

Files changed

modules/profile/sheet/edit.jschanged
modules/profile/sheet/edit.jsView
@@ -82,9 +82,9 @@
8282 footer: [
8383 h('button -save', {
8484 'ev-click': save,
8585 'disabled': publishing
86- }, when(publishing, i18n('Publishing...'), i18n('Publish'))),
86+ }, when(publishing, i18n('Publishing...'), i18n('Preview & Publish'))),
8787 h('button -cancel', {
8888 'disabled': publishing,
8989 'ev-click': close
9090 }, i18n('Cancel'))
@@ -122,8 +122,15 @@
122122 close()
123123 }
124124 })
125125 } 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+ })
126133 close()
127134 }
128135 }
129136 })

Built with git-ssb-web