-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Revert "umb-confirmation directive: move trashcan int…
- Loading branch information
1 parent
f3af025
commit 81cbe36
Showing
8 changed files
with
64 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/Umbraco.Web.UI.Client/src/less/components/umb-confirm-action.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 11 additions & 20 deletions
31
src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,22 @@ | ||
<div class="umb_confirm-action"> | ||
<button ng-if="onDelete" type="button" class="btn-icon" ng-click="clickButton($event)" localize="title" title="@general_delete"> | ||
<umb-icon icon="icon-trash" class="icon-trash"></umb-icon> | ||
<span class="sr-only"> | ||
<localize key="general_delete">Delete</localize> | ||
</span> | ||
</button> | ||
<div class="umb_confirm-action__overlay" | ||
ng-class="{ | ||
'-top': direction === 'top', | ||
'-right': direction === 'right', | ||
'-bottom': direction === 'bottom', | ||
'-left': direction === 'left'}" | ||
on-outside-click="clickCancel()"> | ||
|
||
<div class="umb_confirm-action__overlay" | ||
ng-class="{ | ||
'-top': direction === 'top', | ||
'-right': direction === 'right', | ||
'-bottom': direction === 'bottom', | ||
'-left': direction === 'left'}" | ||
on-outside-click="clickCancel()" ng-if="show"> | ||
|
||
<button type="button" class="btn-reset umb_confirm-action__overlay-action -confirm" ng-click="clickConfirm()" localize="title" title="@buttons_confirmActionConfirm"> | ||
<umb-icon icon="icon-check" class="icon-check"></umb-icon> | ||
<button class="umb_confirm-action__overlay-action -confirm btn-reset" ng-click="clickConfirm()" localize="title" title="@buttons_confirmActionConfirm" type="button"> | ||
<i class="icon-check" aria-hidden="true"></i> | ||
<span class="sr-only"> | ||
<localize key="buttons_confirmActionConfirm">Confirm</localize> | ||
</span> | ||
</button> | ||
|
||
<button type="button" class="btn-reset umb_confirm-action__overlay-action -cancel" ng-click="clickCancel()" localize="title" title="@buttons_confirmActionCancel"> | ||
<umb-icon icon="icon-delete" class="icon-delete"></umb-icon> | ||
<button class="umb_confirm-action__overlay-action -cancel btn-reset" ng-click="clickCancel()" localize="title" title="@buttons_confirmActionCancel" type="button"> | ||
<i class="icon-delete" aria-hidden="true"></i> | ||
<span class="sr-only"> | ||
<localize key="buttons_confirmActionCancel">Cancel</localize> | ||
</span> | ||
</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters