Give some feedback about encrypted wiki pages.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4658 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-12-05 23:39:45 +00:00
parent b13b111614
commit dd909bfe53
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "📝",
"previous": "&LQxzXMctRw4GkxIfsqFFSWhn+8xclOinS/O2q8n1Vfc=.sha256"
"previous": "&2z1RieeV0Kxp9DoT1Jor5tKImA3n4Sh4Dar0+BZpQxY=.sha256"
}

View File

@ -179,7 +179,8 @@ class TfWikiDocElement extends LitElement {
<button ?disabled=${!this.is_editing} @click=${this.on_discard}>Discard</button>
<button ?disabled=${!this.is_editing} @click=${() => self.value = Object.assign({}, self.value, {private: !self.value.private})}>${this.value?.private ? 'Make Public' : 'Make Private'}</button>
</div>
<div style="display: flex; flex-direction: row">
<div ?hidden=${!this.value?.private} style="color: #800">document is private</div>
<div style="display: flex; flex-direction: row; ${this.value?.private ? 'border-top: 4px solid #800' : ''}">
<textarea
?hidden=${!this.is_editing}
style="flex: 1 1; min-height: 10em; ${this.value?.private ? 'border: 4px solid #800' : ''}"