PolyGerrit: Replace content with slot part 2

This change makes the following replacement:

<content select=".header"> replace it with
the slot equivalent.

Change-Id: Icc68576a3b44559775103163febd429194802981
This commit is contained in:
Paladox none 2017-11-10 19:43:20 +00:00
parent 3705a71492
commit 1b3ea22cf5
15 changed files with 38 additions and 38 deletions

View File

@ -70,10 +70,10 @@ limitations under the License.
confirm-label="Create"
on-confirm="_handleCreateGroup"
on-cancel="_handleCloseCreate">
<div class="header">
<div class="header" slot="header">
Create Group
</div>
<div class="main">
<div class="main" slot="main">
<gr-create-group-dialog
has-new-group-name="{{_hasNewGroupName}}"
params="[[params]]"

View File

@ -30,8 +30,8 @@ limitations under the License.
confirm-label="Delete [[_computeItemName(itemType)]]"
on-confirm="_handleConfirmTap"
on-cancel="_handleCancelTap">
<div class="header">[[_computeItemName(itemType)]] Deletion</div>
<div class="main">
<div class="header" slot="header">[[_computeItemName(itemType)]] Deletion</div>
<div class="main" slot="main">
<label for="branchInput">
Do you really want to delete the following [[_computeItemName(itemType)]]?
</label>

View File

@ -77,10 +77,10 @@ limitations under the License.
disabled="[[!_canCreate]]"
on-confirm="_handleCreateChange"
on-cancel="_handleCloseCreateChange">
<div class="header">
<div class="header" slot="header">
Create Change
</div>
<div class="main">
<div class="main" slot="main">
<gr-create-change-dialog
id="createNewChangeModal"
can-create="{{_canCreate}}"

View File

@ -187,10 +187,10 @@ limitations under the License.
confirm-label="Create"
on-confirm="_handleCreateItem"
on-cancel="_handleCloseCreate">
<div class="header">
<div class="header" slot="header">
Create [[_computeItemName(detailType)]]
</div>
<div class="main">
<div class="main" slot="main">
<gr-create-pointer-dialog
id="createNewModal"
detail-type="[[_computeItemName(detailType)]]"

View File

@ -81,10 +81,10 @@ limitations under the License.
confirm-label="Create"
on-confirm="_handleCreateProject"
on-cancel="_handleCloseCreate">
<div class="header">
<div class="header" slot="header">
Create Project
</div>
<div class="main">
<div class="main" slot="main">
<gr-create-project-dialog
has-new-project-name="{{_hasNewProjectName}}"
params="[[params]]"

View File

@ -179,10 +179,10 @@ limitations under the License.
confirm-label="Delete"
on-cancel="_handleConfirmDialogCancel"
on-confirm="_handleDeleteConfirm">
<div class="header">
<div class="header" slot="header">
Delete Change
</div>
<div class="main">
<div class="main" slot="main">
Do you really want to delete the change?
</div>
</gr-confirm-dialog>
@ -192,10 +192,10 @@ limitations under the License.
confirm-label="Delete"
on-cancel="_handleConfirmDialogCancel"
on-confirm="_handleDeleteEditConfirm">
<div class="header">
<div class="header" slot="header">
Delete Change Edit
</div>
<div class="main">
<div class="main" slot="main">
Do you really want to delete the edit?
</div>
</gr-confirm-dialog>

View File

@ -55,8 +55,8 @@ limitations under the License.
confirm-label="Abandon"
on-confirm="_handleConfirmTap"
on-cancel="_handleCancelTap">
<div class="header">Abandon Change</div>
<div class="main">
<div class="header" slot="header">Abandon Change</div>
<div class="main" slot="main">
<label for="messageInput">Abandon Message</label>
<iron-autogrow-textarea
id="messageInput"

View File

@ -62,8 +62,8 @@ limitations under the License.
confirm-label="Cherry Pick"
on-confirm="_handleConfirmTap"
on-cancel="_handleCancelTap">
<div class="header">Cherry Pick Change to Another Branch</div>
<div class="main">
<div class="header" slot="header">Cherry Pick Change to Another Branch</div>
<div class="main" slot="main">
<label for="branchInput">
Cherry Pick to branch
</label>

View File

@ -61,8 +61,8 @@ limitations under the License.
confirm-label="Move Change"
on-confirm="_handleConfirmTap"
on-cancel="_handleCancelTap">
<div class="header">Move Change to Another Branch</div>
<div class="main">
<div class="header" slot="header">Move Change to Another Branch</div>
<div class="main" slot="main">
<p class="warning">
Warning: moving a change will not change its parents.
</p>

View File

@ -52,8 +52,8 @@ limitations under the License.
confirm-label="Rebase"
on-confirm="_handleConfirmTap"
on-cancel="_handleCancelTap">
<div class="header">Confirm rebase</div>
<div class="main">
<div class="header" slot="header">Confirm rebase</div>
<div class="main" slot="main">
<div id="rebaseOnParent" class="rebaseOption"
hidden$="[[!_displayParentOption(rebaseOnCurrent, hasParent)]]">
<input id="rebaseOnParentInput"

View File

@ -50,8 +50,8 @@ limitations under the License.
confirm-label="Revert"
on-confirm="_handleConfirmTap"
on-cancel="_handleCancelTap">
<div class="header">Revert Merged Change</div>
<div class="main">
<div class="header" slot="header">Revert Merged Change</div>
<div class="main" slot="main">
<label for="messageInput">
Revert Commit Message
</label>

View File

@ -55,8 +55,8 @@ limitations under the License.
confirm-label="Delete"
on-confirm="_handleConfirmTap"
on-cancel="_handleCancelTap">
<div class="header">Delete Comment</div>
<div class="main">
<div class="header" slot="header">Delete Comment</div>
<div class="main" slot="main">
<label for="messageInput">Enter comment delete reason</label>
<iron-autogrow-textarea
id="messageInput"

View File

@ -333,10 +333,10 @@ limitations under the License.
confirm-label="Discard"
on-confirm="_handleConfirmDiscard"
on-cancel="_closeConfirmDiscardOverlay">
<div class="header">
<div class="header" slot="header">
Discard comment
</div>
<div class="main">
<div class="main" slot="main">
Are you sure you want to discard this draft comment?
</div>
</gr-confirm-dialog>

View File

@ -85,8 +85,8 @@ limitations under the License.
confirm-label="Edit"
on-confirm="_handleEditConfirm"
on-cancel="_handleDialogCancel">
<div class="header">Edit a file</div>
<div class="main">
<div class="header" slot="header">Edit a file</div>
<div class="main" slot="main">
<gr-autocomplete
placeholder="Enter an existing or new full file path."
query="[[_query]]"
@ -100,8 +100,8 @@ limitations under the License.
confirm-label="Delete"
on-confirm="_handleDeleteConfirm"
on-cancel="_handleDialogCancel">
<div class="header">Delete a file</div>
<div class="main">
<div class="header" slot="header">Delete a file</div>
<div class="main" slot="main">
<gr-autocomplete
placeholder="Enter an existing full file path."
query="[[_query]]"
@ -115,8 +115,8 @@ limitations under the License.
confirm-label="Rename"
on-confirm="_handleRenameConfirm"
on-cancel="_handleDialogCancel">
<div class="header">Rename a file</div>
<div class="main">
<div class="header" slot="header">Rename a file</div>
<div class="main" slot="main">
<gr-autocomplete
placeholder="Enter an existing full file path."
query="[[_query]]"
@ -134,8 +134,8 @@ limitations under the License.
confirm-label="Restore"
on-confirm="_handleRestoreConfirm"
on-cancel="_handleDialogCancel">
<div class="header">Restore this file?</div>
<div class="main">
<div class="header" slot="header">Restore this file?</div>
<div class="main" slot="main">
<input
is="iron-input"
disabled

View File

@ -55,8 +55,8 @@ limitations under the License.
}
</style>
<div class="container">
<header><content select=".header"></content></header>
<main><content select=".main"></content></main>
<header><slot name="header"></slot></header>
<main><slot name="main"></slot></main>
<footer>
<gr-button link on-tap="_handleCancelTap">[[cancelLabel]]</gr-button>
<gr-button link primary on-tap="_handleConfirmTap" disabled="[[disabled]]">