diff --git a/endpoints/api/manifest.py b/endpoints/api/manifest.py index 019c3dad2..aede35bda 100644 --- a/endpoints/api/manifest.py +++ b/endpoints/api/manifest.py @@ -49,9 +49,9 @@ class RepositoryManifestLabels(RepositoryParamResource): 'description': 'The value for the label', }, 'media_type': { - 'type': ['string'], + 'type': ['string', 'null'], 'description': 'The media type for this label', - 'enum': ALLOWED_LABEL_MEDIA_TYPES, + 'enum': ALLOWED_LABEL_MEDIA_TYPES + [None], }, }, }, diff --git a/static/css/directives/ui/tag-operations-dialog.css b/static/css/directives/ui/tag-operations-dialog.css index 861a3d89d..9f8934369 100644 --- a/static/css/directives/ui/tag-operations-dialog.css +++ b/static/css/directives/ui/tag-operations-dialog.css @@ -20,4 +20,9 @@ list-style: none; display: inline-block; margin: 4px; +} + +.tag-operations-dialog .label-section { + margin-bottom: 10px; + padding: 6px; } \ No newline at end of file diff --git a/static/directives/repo-view/repo-panel-tags.html b/static/directives/repo-view/repo-panel-tags.html index c47f9614e..7320787e0 100644 --- a/static/directives/repo-view/repo-panel-tags.html +++ b/static/directives/repo-view/repo-panel-tags.html @@ -232,6 +232,10 @@ Add New Tag + + Edit Labels + Delete Tag @@ -272,6 +276,7 @@
+ action-handler="tagActionHandler" + labels-changed="handleLabelsChanged(manifest_digest)">
diff --git a/static/directives/tag-operations-dialog.html b/static/directives/tag-operations-dialog.html index 103bb23d4..5febe8702 100644 --- a/static/directives/tag-operations-dialog.html +++ b/static/directives/tag-operations-dialog.html @@ -18,6 +18,27 @@ + +
+ +
+
+
Read-only labels:
+
+
+
+ +
Mutable labels:
+
+
+
+
+