Skip to content

Commit 8c8865d

Browse files
committed
rename status_code to header
1 parent 689c614 commit 8c8865d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/official-site/sqlpage/migrations/60_empty_state.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ INSERT INTO component(name, icon, description, introduced_in_version) VALUES
33

44
INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'empty_state', * FROM (VALUES
55
('title','Description of the empty state.','TEXT',TRUE,FALSE),
6-
('status_code','HTTP status code displayed on the top of the empty state.','INTEGER',TRUE,TRUE),
6+
('header','Text displayed on the top of the empty state.','TEXT',TRUE,TRUE),
77
('icon','Name of an icon to be displayed on the top of the empty state.','ICON',TRUE,TRUE),
88
('image','The URL (absolute or relative) of an image to display at the top of the empty state.','URL',TRUE,TRUE),
99
('description','A short text displayed below the title.','TEXT',TRUE,TRUE),
@@ -19,7 +19,7 @@ The empty_state component provides users with informative and visually appealing
1919
json('[{
2020
"component": "empty_state",
2121
"title": "No results found",
22-
"status_code": 404,
22+
"header": "404",
2323
"description": "Try adjusting your search or filter to find what you''re looking for.",
2424
"link_text": "Search again",
2525
"link_icon": "search",

sqlpage/templates/empty_state.handlebars

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="empty">
2-
{{#if status_code}}
3-
<div class="empty-header">{{status_code}}</div>
2+
{{#if header}}
3+
<div class="empty-header">{{header}}</div>
44
{{else}}
55
{{#if icon}}
66
<div class="empty-icon">

0 commit comments

Comments
 (0)