From a8767e8b0236821cfb8dadabba5ad15128409373 Mon Sep 17 00:00:00 2001
From: Mikey Oz <ozmichaelt@icloud.com>
Date: Wed, 4 May 2022 14:14:50 -0700
Subject: [PATCH] remove create button in favor of trafnar's result idea

---
 app/client.imba | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/app/client.imba b/app/client.imba
index a1bb868..b500313 100644
--- a/app/client.imba
+++ b/app/client.imba
@@ -181,14 +181,12 @@ tag app
 				mr:10px rd:3px h:20px w:20px bd:none
 
 			css .disabled
-				c:gray4 cursor:default
+				@important c:gray4 cursor:default
 
-			<.buttons>
+			css .create
+				c:purple4 cursor:pointer py:10px
 
-				if loading_create
-					<.button.disabled> "CREATE"
-				else
-					<.button@click=handle_click_create> "CREATE"
+			<.buttons>
 
 				<.button@click=handle_click_delete> "DELETE"
 				<.button@click=handle_click_export> "EXPORT"
@@ -214,6 +212,12 @@ tag app
 				@input=handle_input
 				@paste=handle_paste
 			>
+			if state.query.trim!.split(/\s+/).length > 1
+				if loading_create
+					<.create.disabled> "+ {state.query}"
+				else
+					<.create@click=handle_click_create> "+ {state.query}"
+				
 			<.links>
 				for obj in state.scored_links
 					<.link@click.prevent=handle_click_link(obj)>