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

Side by Side Diff: appengine/config_service/ui/src/config-ui/config-ui.html

Issue 2980973002: config_service: Fixed multiple ajax requests in the front page while the page determines whether a … (Closed)
Patch Set: Cleaned up unnecessary code 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 unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 Copyright 2017 The LUCI Authors. All rights reserved. 2 Copyright 2017 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="../../bower_components/polymer/polymer.html"> 7 <link rel="import" href="../../bower_components/polymer/polymer.html">
8 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht ml"> 8 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht ml">
9 <link rel="import" href="../../bower_components/app-route/app-location.html"> 9 <link rel="import" href="../../bower_components/app-route/app-location.html">
10 <link rel="import" href="../../bower_components/app-route/app-route.html"> 10 <link rel="import" href="../../bower_components/app-route/app-route.html">
(...skipping 23 matching lines...) Expand all
34 34
35 .right { margin-left:15px; } 35 .right { margin-left:15px; }
36 36
37 .title { 37 .title {
38 font-size: 125%; 38 font-size: 125%;
39 color: white; 39 color: white;
40 } 40 }
41 </style> 41 </style>
42 42
43 <app-drawer-layout fullbleed force-narrow> 43 <app-drawer-layout fullbleed force-narrow>
44
45 <app-header-layout> 44 <app-header-layout>
46
47 <app-header reveals slot="header"> 45 <app-header reveals slot="header">
48 <app-toolbar> 46 <app-toolbar>
49 <!--<image class="logo" src="/static/images/chromium.png"/>--> 47 <!--<image class="logo" src="/static/images/chromium.png"/>-->
50 <div class="title" main-title> 48 <div class="title" main-title>
51 Configuration Service 49 Configuration Service
52 </div> 50 </div>
53 51
54 <template is="dom-if" if="[[client_id]]"> 52 <template is="dom-if" if="[[client_id]]">
55 <auth-signin 53 <auth-signin
56 class="right" 54 class="right"
(...skipping 20 matching lines...) Expand all
77 pattern="/projects/:projectName" 75 pattern="/projects/:projectName"
78 data="{{projectData}}" 76 data="{{projectData}}"
79 tail="{{projectTail}}" 77 tail="{{projectTail}}"
80 active="{{projectActive}}"></app-route> 78 active="{{projectActive}}"></app-route>
81 79
82 <app-route route="{{route}}" 80 <app-route route="{{route}}"
83 pattern="/" 81 pattern="/"
84 active="{{frontPageActive}}"></app-route> 82 active="{{frontPageActive}}"></app-route>
85 83
86 <template is="dom-if" if="[[frontPageActive]]"> 84 <template is="dom-if" if="[[frontPageActive]]">
87 <front-page auth_headers="{{auth_headers}}"></front-page> 85 <front-page auth_headers="[[auth_headers]]"></front-page>
88 </template> 86 </template>
89 87
90 <template is="dom-if" if="[[serviceActive]]" restamp="true"> 88 <template is="dom-if" if="[[serviceActive]]" restamp="true">
91 <config-set category="services" 89 <config-set category="services"
92 name="{{serviceData.serviceName}}" 90 name="[[serviceData.serviceName]]"
93 route="{{serviceTail}}" 91 route="[[serviceTail]]"
94 auth_headers="{{auth_headers}}" 92 auth_headers="[[auth_headers]]"
95 front-page-is-active="[[frontPageActive]]"></config-set> 93 front-page-is-active="[[frontPageActive]]"></config-set>
96 </template> 94 </template>
97 95
98 <template is="dom-if" if="[[projectActive]]" restamp="true"> 96 <template is="dom-if" if="[[projectActive]]" restamp="true">
99 <config-set category="projects" 97 <config-set category="projects"
100 name="{{projectData.projectName}}" 98 name="[[projectData.projectName]]"
101 route="{{projectTail}}" 99 route="[[projectTail]]"
102 auth_headers="{{auth_headers}}" 100 auth_headers="[[auth_headers]]"
103 front-page-is-active="[[frontPageActive]]"></config-set> 101 front-page-is-active="[[frontPageActive]]"></config-set>
104 </template> 102 </template>
105
106 </app-header-layout> 103 </app-header-layout>
107
108 </app-drawer-layout> 104 </app-drawer-layout>
109
110 </template> 105 </template>
111 106
112 <script> 107 <script>
113 Polymer({ 108 Polymer({
114 is: 'config-ui', 109 is: 'config-ui',
115 110
116 properties: { 111 properties: {
117 client_id: { 112 client_id: {
118 type: String, 113 type: String,
119 value: null 114 value: null
120 } 115 }
121 }, 116 },
122 117
123 ready: function() { 118 ready: function() {
124 this.async(function() { 119 this.async(function() {
125 // If the path is blank, redirect to / 120 // If the path is blank, redirect to /
126 if (!this.route.path) { 121 if (!this.route.path) {
127 this.set('route.path', '/'); 122 this.set('route.path', '/');
128 } 123 }
129 }); 124 });
130 }, 125 },
131 126
132 }); 127 });
133 </script> 128 </script>
134 </dom-module> 129 </dom-module>
OLDNEW
« no previous file with comments | « appengine/config_service/ui/common/auth-signin.html ('k') | appengine/config_service/ui/src/config-ui/front-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698