|
@@ -1,5 +1,4 @@
|
|
-SET ":view" = COALESCE(:content, '') <> '' AND COALESCE(:action, '') <> ('Edit as New');
|
|
|
|
-SELECT 'button' AS component;
|
|
|
|
|
|
+SET ":view" = COALESCE(:content, '') <> '' AND COALESCE(:action, '') <> 'Edit as New';
|
|
SELECT 'Open' AS title
|
|
SELECT 'Open' AS title
|
|
, 1 AS width
|
|
, 1 AS width
|
|
, '/clip.sql?action=open' AS link
|
|
, '/clip.sql?action=open' AS link
|
|
@@ -38,7 +37,7 @@ SELECT 'Paste something here...' AS placeholder
|
|
, 'content' AS name
|
|
, 'content' AS name
|
|
, 'textarea' AS type
|
|
, 'textarea' AS type
|
|
, '' AS label
|
|
, '' AS label
|
|
-, :view AS disabled
|
|
|
|
|
|
+, :view::bool AS disabled
|
|
, CASE COALESCE(:action, '')
|
|
, CASE COALESCE(:action, '')
|
|
WHEN 'New' THEN NULL
|
|
WHEN 'New' THEN NULL
|
|
ELSE :content
|
|
ELSE :content
|