mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
Display components priorities in list and views
This commit is contained in:
@@ -179,6 +179,7 @@
|
||||
vm.addAttendee = addAttendee;
|
||||
vm.removeAttendee = removeAttendee;
|
||||
vm.addAttachUrl = addAttachUrl;
|
||||
vm.priorityLevel = priorityLevel;
|
||||
vm.cancel = cancel;
|
||||
vm.save = save;
|
||||
vm.attendeeConflictError = false;
|
||||
@@ -243,6 +244,17 @@
|
||||
vm.showAttendeesEditor = false;
|
||||
}
|
||||
|
||||
function priorityLevel() {
|
||||
if (vm.component.priority) {
|
||||
if (vm.component.priority > 5)
|
||||
return l('low');
|
||||
else if (vm.component.priority > 4)
|
||||
return l('normal');
|
||||
else
|
||||
return l('high');
|
||||
}
|
||||
}
|
||||
|
||||
function save(form, options) {
|
||||
if (form.$valid) {
|
||||
vm.component.$save(options)
|
||||
|
||||
Reference in New Issue
Block a user