From 367c489fc3f0b8491ce54d441800f03fb191bd77 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 7 Nov 2023 23:34:55 +0000 Subject: [PATCH] Hide wiki things that don't apply when you're not logged in. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4617 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/wiki.json | 2 +- apps/wiki/tf-collection.js | 11 ++++++----- apps/wiki/tf-collections-app.js | 4 +++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/apps/wiki.json b/apps/wiki.json index 416773bd..e9a1ab5a 100644 --- a/apps/wiki.json +++ b/apps/wiki.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📝", - "previous": "&s6S7S8P4kxvqLRip/WX45Bw7h+GG79BjJRBZOnaDtaE=.sha256" + "previous": "&rj3P1MdTitVRBCznRAN+lmMz8dxPwil2PjQ31KdkPi4=.sha256" } \ No newline at end of file diff --git a/apps/wiki/tf-collection.js b/apps/wiki/tf-collection.js index 82161442..71c6cefd 100644 --- a/apps/wiki/tf-collection.js +++ b/apps/wiki/tf-collection.js @@ -4,6 +4,7 @@ import * as tfrpc from '/static/tfrpc.js'; class TfCollectionElement extends LitElement { static get properties() { return { + whoami: {type: String}, collection: {type: Object}, selected_id: {type: String}, is_creating: {type: Boolean}, @@ -69,7 +70,7 @@ class TfCollectionElement extends LitElement { ${Object.values(this.collection ?? {}).map(x => html``)} - + @@ -77,15 +78,15 @@ class TfCollectionElement extends LitElement { - - - + + + - + `; } diff --git a/apps/wiki/tf-collections-app.js b/apps/wiki/tf-collections-app.js index 04b24f8c..cb47d6e0 100644 --- a/apps/wiki/tf-collections-app.js +++ b/apps/wiki/tf-collections-app.js @@ -192,11 +192,12 @@ class TfCollectionsAppElement extends LitElement { let self = this; return html`
- +
${keyed(this.wiki_doc?.id, html`