blob: 23d780f517b2d10e729dc31ba4b771fc85cdcacf [file] [log] [blame]
<style>
#removalNotification {
display: flex;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
<slot name="body"></slot>
<cr-action-menu id="menu" role-description="$i18n{menu}">
<button id="menuCopyPassword" class="dropdown-item"
hidden$="[[activePassword_.entry.federationText]]"
on-click="onMenuCopyPasswordButtonTap_">$i18n{copyPassword}</button>
<button id="menuEditPassword" class="dropdown-item"
on-click="onMenuEditPasswordTap_">
[[getMenuEditPasswordName_(isEditDialog_)]]
</button>
<button id="menuRemovePassword" class="dropdown-item"
on-click="onMenuRemovePasswordTap_">$i18n{removePassword}</button>
<button id="menuMovePasswordToAccount"
on-click="onMenuMovePasswordToAccountTap_"
hidden$="[[!shouldShowMoveToAccountOption_(activePassword_,
allowMoveToAccountOption, firstSignedInAccountEmail_)]]"
class="dropdown-item">$i18n{movePasswordToAccount}</button>
</cr-action-menu>
<template is="dom-if" if="[[showPasswordEditDialog_]]" restamp>
<password-edit-dialog on-close="onPasswordEditDialogClosed_"
id="passwordEditDialog"
<if expr="chromeos">
token-request-manager="[[tokenRequestManager]]"
</if>
entry="[[activePassword_.entry]]" saved-passwords="[[savedPasswords]]"
should-show-storage-details="[[shouldShowStorageDetails]]">
</password-edit-dialog>
</template>
<template is="dom-if" if="[[showPasswordMoveToAccountDialog_]]" restamp>
<password-move-to-account-dialog id="passwordMoveToAccountDialog"
password-to-move="[[activePassword_.entry]]"
on-close="onPasswordMoveToAccountDialogClosed_">
</password-move-to-account-dialog>
</template>
<template is="dom-if" if="[[showPasswordRemoveDialog_]]" restamp>
<password-remove-dialog id="passwordRemoveDialog"
duplicated-password="[[activePassword_.entry]]"
on-close="onPasswordRemoveDialogClosed_">
</password-remove-dialog>
</template>
<cr-toast id="toast" duration="5000">
<div id="removalNotification">[[removalNotification_]]</div>
<cr-button aria-label="$i18n{undoDescription}"
on-click="onUndoButtonClick_">$i18n{undoRemovePassword}</cr-button>
</cr-toast>