Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: appengine/config_service/ui/src/config-ui/config-set.html

Issue 2992713002: config_service: add ref config set type (Closed)
Patch Set: Nit: check for /refs instead of just refs Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/config_service/ui/src/config-ui/config-set.html
diff --git a/appengine/config_service/ui/src/config-ui/config-set.html b/appengine/config_service/ui/src/config-ui/config-set.html
index f442d03437c8394bfa2e31a3158507d341092cd5..1cf8ce5a2ad66b764caf2f9bde0ed81093bdf47e 100644
--- a/appengine/config_service/ui/src/config-ui/config-set.html
+++ b/appengine/config_service/ui/src/config-ui/config-set.html
@@ -113,7 +113,7 @@
</template>
</div>
<div class="category">
- <p>[[_formatCategory(category)]]</p>
+ <p>[[_formatCategory(category, route.path)]]</p>
<template is="dom-if" if="[[_not(isLoading)]]">
<template is="dom-if" if="[[lastImportAttempt]]">
<template is="dom-if" if="[[_not(lastImportAttempt.success)]]">
@@ -240,7 +240,8 @@
return list.length === 0;
},
- _formatCategory: function(category) {
+ _formatCategory: function(category, name) {
+ if (name.includes("/refs")) return "Ref";
if (category === "projects") return "Project";
if (category === "services") return "Service";
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698