Files
gerrit/polygerrit-ui/app/elements/admin/gr-admin-view/gr-admin-view.js
Becky Siegel 3f887851c8 Add instructions for switching to old UI for admin view
Previously, if you attempted to view an admin/* URL in PolyGerrit, it
rendered a blank page. This change adds the building blocks for an admin
section (router, element), but simply renders a message and link to
switch to the old UI (for whatever the URL entered was).

Bug: Issue 5406
Change-Id: I3fce0d0521122e317838f8d757895e4da6818b95
2017-02-02 12:54:48 -08:00

25 lines
734 B
JavaScript

// Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
(function() {
'use strict';
Polymer({
is: 'gr-admin-view',
properties: {
path: String,
},
});
})();