From 8fe7adc50e8aa9cfd4753cb4df60e2f7cb0cc8e3 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 2 Nov 2023 01:43:32 +0000 Subject: [PATCH] wiki: Make it possible for links to work. Minor cleanup. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4600 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/wiki.json | 2 +- apps/wiki/index.html | 1 + apps/wiki/tf-collection.js | 26 ++++++++------------------ 3 files changed, 10 insertions(+), 19 deletions(-) diff --git a/apps/wiki.json b/apps/wiki.json index abea7888..6575b3da 100644 --- a/apps/wiki.json +++ b/apps/wiki.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📝", - "previous": "&CsLn1jrN7+Zztpnb3Br1yMwvmef9yQ6c090M+eT8d80=.sha256" + "previous": "&yXKDVsBMD1J3ZAqbLuG/z2sq/6lIIUu88dennvwuins=.sha256" } \ No newline at end of file diff --git a/apps/wiki/index.html b/apps/wiki/index.html index 78005038..b38afe87 100644 --- a/apps/wiki/index.html +++ b/apps/wiki/index.html @@ -1,6 +1,7 @@ + diff --git a/apps/wiki/tf-collection.js b/apps/wiki/tf-collection.js index ba73ed7e..d0e4fe2d 100644 --- a/apps/wiki/tf-collection.js +++ b/apps/wiki/tf-collection.js @@ -111,6 +111,7 @@ class TfCollectionElement extends LitElement { if (name) { await this.create(name, [this.whoami]); } + this.is_creating = false; } async on_rename(id) { @@ -123,6 +124,7 @@ class TfCollectionElement extends LitElement { }; print(message); await tfrpc.rpc.appendMessage(this.whoami, message); + this.is_renaming = false; } async on_tombstone(event) { @@ -168,18 +170,6 @@ class TfCollectionElement extends LitElement { this._select_by_name = name; } - render_collection(collection) { - return html` -
- - ${collection.id} -
-
- ${collection.editors.map(id => html`${id}`)} -
- `; - } - on_selected(event) { if (this.collections) { for (let collection of this.collections) { @@ -223,12 +213,6 @@ class TfCollectionElement extends LitElement { ${this.collections?.map(x => html``)} `} - - - - - - @@ -237,6 +221,12 @@ class TfCollectionElement extends LitElement { + + + + + + `;