forked from SAP-archive/yaas-storefront
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nemanja Popovic
committed
Jul 29, 2016
1 parent
074c6f5
commit 65e19a4
Showing
116 changed files
with
4,698 additions
and
2,089 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ coverage/ | |
config/config.js | ||
dist | ||
.DS_Store | ||
.vscode | ||
.vscode | ||
typings/ |
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
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
34 changes: 34 additions & 0 deletions
34
public/js/app/account/controllers/dialogs/order-cancel-dialog-ctrl.js
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* [y] hybris Platform | ||
* | ||
* Copyright (c) 2000-2016 hybris AG | ||
* All rights reserved. | ||
* | ||
* This software is the confidential and proprietary information of hybris | ||
* ("Confidential Information"). You shall not disclose such Confidential | ||
* Information and shall use it only in accordance with the terms of the | ||
* license agreement you entered into with hybris. | ||
*/ | ||
(function () { | ||
'use strict'; | ||
|
||
angular.module('ds.account') | ||
.controller('OrderCancelDialogCtrl', ['$scope', '$modalInstance', 'order', 'OrderDetailSvc', '$translate', | ||
function ($scope, $modalInstance, order, OrderDetailSvc, $translate) { | ||
|
||
$scope.orderCancelError = ''; | ||
|
||
$scope.cancelOrder = function () { | ||
OrderDetailSvc.cancelOrder(order.id).then(function (response) { | ||
$modalInstance.close({status: response.status}); | ||
}, function () { | ||
$scope.orderCancelError = $translate.instant('ORDER_CANCEL_ERROR'); | ||
}); | ||
}; | ||
|
||
$scope.closeCancelOrderDialog = function () { | ||
$modalInstance.dismiss('cancel'); | ||
}; | ||
|
||
}]); | ||
})(); |
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
Oops, something went wrong.