kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Better wording and button colours for password UI
rodzic
47b42ac149
commit
5028da3953
|
@ -85,7 +85,7 @@ exports.startup = function() {
|
||||||
// Install the crypto event handler
|
// Install the crypto event handler
|
||||||
document.addEventListener("tw-set-password",function(event) {
|
document.addEventListener("tw-set-password",function(event) {
|
||||||
$tw.passwordPrompt.createPrompt({
|
$tw.passwordPrompt.createPrompt({
|
||||||
serviceName: "Set new password for this TiddlyWiki",
|
serviceName: "Set a new password for this TiddlyWiki",
|
||||||
noUserName: true,
|
noUserName: true,
|
||||||
submitText: "Set password",
|
submitText: "Set password",
|
||||||
callback: function(data) {
|
callback: function(data) {
|
||||||
|
|
|
@ -2,10 +2,10 @@ title: $:/snippets/encryptionstatus
|
||||||
|
|
||||||
<$reveal type="match" state="$:/isEncrypted" text="yes">
|
<$reveal type="match" state="$:/isEncrypted" text="yes">
|
||||||
This wiki is encrypted.
|
This wiki is encrypted.
|
||||||
<$button message="tw-clear-password">Clear password</$button>
|
<$button message="tw-clear-password" class="btn btn-mini btn-danger">Clear password</$button>
|
||||||
<$button message="tw-set-password">Change password</$button>
|
<$button message="tw-set-password" class="btn btn-mini btn-warning">Change password</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
||||||
This wiki is not encrypted.
|
This wiki is not encrypted.
|
||||||
<$button message="tw-set-password">Set password</$button>
|
<$button message="tw-set-password" class="btn btn-mini btn-warning">Set password</$button>
|
||||||
</$reveal>
|
</$reveal>
|
Ładowanie…
Reference in New Issue