diff --git a/app/client.imba b/app/client.imba index 22c5695..1ff243a 100644 --- a/app/client.imba +++ b/app/client.imba @@ -234,11 +234,20 @@ tag app @paste=handle_paste > <[fs:25px c:purple4 cursor:pointer]@click=toggle_settings> "..." - if state.query.trim!.split(/\s+/).length > 1 - if loading_create - <.create.disabled> "+ {state.query}" + let split_query = state.query.trim!.split(/\s+/) + if split_query.length > 1 + let last = split_query.pop! + let joined = split_query.join " " + if name_exists joined + <.create.disabled> "name already exists" else - <.create@click=handle_click_create> "+ {state.query}" + if loading_create + <.create.disabled> + "+ {joined} {last}" + else + <.create@click=handle_click_create> + "+ {joined} " + last <.links> for obj in state.scored_links diff --git a/package.json b/package.json index 5beff5f..9db83c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fuzzyhome", - "version": "0.0.17", + "version": "0.0.18", "scripts": { "start": "imba run -SMH --baseurl . -w server.imba", "build-app": "imba build -SMH --baseurl . server.imba", diff --git a/sw.imba b/sw.imba index eb2a4d3..7e5291f 100644 --- a/sw.imba +++ b/sw.imba @@ -1,7 +1,7 @@ let p = console.log const app_prefix = "fuzzyhome_cache" -const version = "0.0.17" +const version = "0.0.18" const cache_name = "{app_prefix}-{version}"