Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "showheader-not-allowed-extension-point",
"widgets": [
{
"extensionPoint": "ISSUE_BELOW_SUMMARY",
"indexPath": "index.html",
"key": "issue-widget",
"name": "Issue Widget",
"showHeader": true
}
]
}
31 changes: 31 additions & 0 deletions src/schemas/json/youtrack-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@
"uniqueItems": true,
"description": "The set of permissions required to view and use the widget. Depending on the app scope, these permissions can be required at the global or project level.",
"items": { "$ref": "#/definitions/permissions" }
},
"showHeader": {
"type": "boolean",
"description": "Controls the global top bar for full screen widgets. If set to false, the app must implement a visually consistent custom header or breadcrumbs."
}
},
"allOf": [
Expand Down Expand Up @@ -326,6 +330,33 @@
}
}
}
},
{
"if": {
"not": {
"anyOf": [
{
"properties": {
"extensionPoint": { "const": "MAIN_MENU_ITEM" }
},
"required": ["extensionPoint"]
},
{
"properties": {
"extensionPoint": { "const": "ADMINISTRATION_MENU_ITEM" }
},
"required": ["extensionPoint"]
}
]
}
},
"then": {
"properties": {
"showHeader": {
"not": {}
}
}
}
Comment thread
andrey-skl marked this conversation as resolved.
}
],
"required": ["key", "name", "indexPath", "extensionPoint"]
Expand Down
12 changes: 12 additions & 0 deletions src/test/youtrack-app/showHeader-administration-menu-item.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "showheader-administration-menu-item",
"widgets": [
{
"extensionPoint": "ADMINISTRATION_MENU_ITEM",
"indexPath": "index.html",
"key": "admin-menu-widget",
"name": "Admin Menu Widget",
"showHeader": false
}
]
}
12 changes: 12 additions & 0 deletions src/test/youtrack-app/showHeader-main-menu-item.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "showheader-main-menu-item",
"widgets": [
{
"extensionPoint": "MAIN_MENU_ITEM",
"indexPath": "index.html",
"key": "main-menu-widget",
"name": "Main Menu Widget",
"showHeader": true
}
]
}