Better wording and button colours for password UI

print-window-tiddler
Jeremy Ruston 2013-02-02 12:06:59 +00:00
rodzic 47b42ac149
commit 5028da3953
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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) {

Wyświetl plik

@ -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>