feat(tickets): tickets css

This commit is contained in:
OldHawk
2018-04-17 13:41:28 +08:00
parent 965bb07651
commit fd84416132
5 changed files with 16 additions and 9 deletions

View File

@@ -4,7 +4,7 @@
.badge_default {
margin: 0 @badge-margin;
background-color: #ccc !important;
background-color: #aaa !important;
}
.badge_info {
margin: 0 @badge-margin;

View File

@@ -21,11 +21,9 @@
*/
vm.getOpenedTicketsNumber = function () {
MessageTicketsService.getOpenedCount(function (res) {
console.log(res);
$scope.messageOpened = res.opened;
});
MailTicketsService.getOpenedCount(function (res) {
console.log(res);
$scope.mailOpened = res.opened;
});
};

View File

@@ -151,7 +151,6 @@
});
function successCallback(res) {
console.log(res);
vm.postReplyFields = {};
vm.currentPage = Math.ceil(res._replies.length / vm.itemsPerPage);
vm.ticket = res;
@@ -215,11 +214,9 @@
messageTicketId: t._id,
replyId: undefined
}, function (res) {
console.log(res);
NotifycationService.showSuccessNotify('SUPPORT.DELETE_TICKET_SUCCESSFULLY');
$state.go('admin.tickets.support.message');
}, function (res) {
console.log(res);
NotifycationService.showErrorNotify(res.data.message, 'SUPPORT.DELETE_TICKET_FAILED');
});
});
@@ -243,7 +240,6 @@
messageTicketId: vm.ticket._id,
replyId: reply._id
}, function (res) {
console.log(res);
vm.ticket = res;
vm.figureOutItemsToDisplay();
NotifycationService.showSuccessNotify('FORUMS.DELETE_REPLY_SUCCESSFULLY');

View File

@@ -4,6 +4,19 @@
text-shadow: none;
}
.page-support {
.btn-default {
.badge {
background-color: #aaa;
}
}
.btn-success {
.badge {
background-color: #fff;
}
}
}
.ticket-item {
.ticket-avatar {
img {

View File

@@ -1,5 +1,5 @@
<section ng-controller="MessageTicketController as vm" ng-init="vm.getOpenedTicketsNumber()">
<div class="pagetop">
<div class="pagetop page-support">
<div class="container padding-top-30 padding-bottom-30">
<div class="row">
<div class="col-xs-6 col-sm-4 col-sm-offset-2">
@@ -13,7 +13,7 @@
<a class="btn btn-default btn-lg btn-block" ui-sref="admin.tickets.support.mail"
ui-sref-active="btn-success btn-un-default"
ng-class="{'btn-success btn-un-default': $state.current.name.indexOf('viewMail')}>=0">
{{'SUPPORT.TITLE_MAIL_SUPPORT' | translate}} <span class="badge badge_default">{{mailOpened || 0}}</span>
{{'SUPPORT.TITLE_MAIL_SUPPORT' | translate}} <span class="badge">{{mailOpened || 0}}</span>
</a>
</div>
</div>