Files
gerrit/polygerrit-ui/app/elements/edit/gr-edit-constants.html
Kasper Nilsson 50172e655a Refactor gr-edit-constants
Renaming the 'key' prop in the GrEditConstants.Actions enum is more
technically correct. The value is used as an ID in most applications, so
this makes more sense when used practically.

Change-Id: Ifb40bca2c71296289639d9f30835c2f871205175
2017-10-19 23:39:34 +00:00

31 lines
984 B
HTML

<!--
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.
-->
<script>
(function(window) {
'use strict';
const GrEditConstants = window.GrEditConstants || {};
GrEditConstants.Actions = {
EDIT: {label: 'Edit', id: 'edit'},
DELETE: {label: 'Delete', id: 'delete'},
RENAME: {label: 'Rename', id: 'rename'},
RESTORE: {label: 'Restore', id: 'restore'},
};
window.GrEditConstants = GrEditConstants;
})(window);
</script>