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

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

Issue 2936423002: config_service: add routing for config-set page. (Closed)
Patch Set: Remove UI handler. Created 3 years, 6 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
Index: appengine/config_service/ui/src/config-ui/front-page.html
diff --git a/appengine/config_service/ui/src/config-ui/front-page.html b/appengine/config_service/ui/src/config-ui/front-page.html
index ff087b1ab8198f53d9d99bc5f0d4e4634fbaaf25..95e70b821e6fce4ed1afcc4101e50d58ded6b169 100644
--- a/appengine/config_service/ui/src/config-ui/front-page.html
+++ b/appengine/config_service/ui/src/config-ui/front-page.html
@@ -5,40 +5,22 @@
-->
<link rel="import" href="../../bower_components/app-layout/app-layout.html">
-<link rel="import" href="config-card.html">
<link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html">
<link rel="import" href="../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../bower_components/paper-search/paper-search-bar.html">
<link rel="import" href="../../bower_components/polymer/polymer.html">
+<link rel="import" href="config-set-card.html">
+
<dom-module id="front-page">
<template>
<style>
- app-toolbar {
- background-color: #efefef;
- color: #232323;
- }
-
- app-header {
- @apply --layout-fixed-top;
- }
-
.center {
width: 50%;
margin: auto;
text-align: center;
}
- .logo {
- height: 100%;
- }
-
- .title {
- padding-left: 1%;
- font-size: 150%;
- font-family: sans-serif;
- }
-
.search-bar {
padding-top: 7%;
padding-bottom: 2%;
@@ -53,13 +35,6 @@
}
</style>
- <app-header reveals>
- <app-toolbar>
- <image class="logo" src="/static/images/chromium.png"/>
- <div class="title" main-title>Configuration Service (not fully implemented)</div>
- </app-toolbar>
- </app-header>
-
<iron-ajax
auto
id="requestConfigs"
@@ -67,7 +42,7 @@
handle-as="json"
on-response="_onGotConfigSets">
</iron-ajax>
-
+
<div class="search-bar">
<paper-search-bar query="{{query}}"></paper-search-bar>
</div>
@@ -82,7 +57,7 @@
</template>
<template is="dom-if" if="[[_not(_isEmpty(searchResults))]]">
<template is="dom-repeat" items="[[searchResults]]" as="config">
- <config-card name="[[config.config_set]]"></config-card>
+ <config-set-card name="[[config.config_set]]" on-tap="_handleClick"></config-set-card>
</template>
</template>
</template>
@@ -131,7 +106,12 @@
_updateSearchResults: function() {
this.searchResults = this.configSetList.filter(e => e.config_set.includes(this.query));
- }
+ },
+
+ _handleClick: function(event) {
+ window.location = window.location.href + event.model.config.config_set;
+ },
+
});
</script>
</dom-module>
« no previous file with comments | « appengine/config_service/ui/src/config-ui/config-ui.html ('k') | appengine/config_service/ui/static/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698