mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Added some improvements and clear user list
This commit is contained in:
@@ -66,6 +66,7 @@ export class ActivitiPeople {
|
|||||||
public cancel() {
|
public cancel() {
|
||||||
if (this.dialog) {
|
if (this.dialog) {
|
||||||
this.dialog.nativeElement.close();
|
this.dialog.nativeElement.close();
|
||||||
|
this.peopleObserver.next([]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -15,8 +15,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
||||||
import { AlfrescoTranslationService, AlfrescoAuthenticationService } from 'ng2-alfresco-core';
|
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
import { TaskDetailsModel } from '../models/task-details.model';
|
import { TaskDetailsModel } from '../models/task-details.model';
|
||||||
import { ActivitiTaskListService } from './../services/activiti-tasklist.service';
|
import { ActivitiTaskListService } from './../services/activiti-tasklist.service';
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ declare let dialogPolyfill: any;
|
|||||||
templateUrl: './activiti-start-task.component.html',
|
templateUrl: './activiti-start-task.component.html',
|
||||||
styleUrls: ['./activiti-start-task.component.css']
|
styleUrls: ['./activiti-start-task.component.css']
|
||||||
})
|
})
|
||||||
export class ActivitiStartProcessButton implements OnInit {
|
export class ActivitiStartProcessButton {
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
appId: string;
|
appId: string;
|
||||||
@@ -49,8 +49,7 @@ export class ActivitiStartProcessButton implements OnInit {
|
|||||||
* @param translate
|
* @param translate
|
||||||
* @param taskService
|
* @param taskService
|
||||||
*/
|
*/
|
||||||
constructor(private auth: AlfrescoAuthenticationService,
|
constructor(private translate: AlfrescoTranslationService,
|
||||||
private translate: AlfrescoTranslationService,
|
|
||||||
private taskService: ActivitiTaskListService) {
|
private taskService: ActivitiTaskListService) {
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
@@ -58,9 +57,6 @@ export class ActivitiStartProcessButton implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public start() {
|
public start() {
|
||||||
if (this.name) {
|
if (this.name) {
|
||||||
this.taskService.createNewTask(new TaskDetailsModel({
|
this.taskService.createNewTask(new TaskDetailsModel({
|
||||||
|
@@ -15,8 +15,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Input, OnInit } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
import { AlfrescoTranslationService, AlfrescoAuthenticationService } from 'ng2-alfresco-core';
|
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
import { TaskDetailsModel } from '../models/task-details.model';
|
import { TaskDetailsModel } from '../models/task-details.model';
|
||||||
|
|
||||||
declare let componentHandler: any;
|
declare let componentHandler: any;
|
||||||
@@ -27,7 +27,7 @@ declare let componentHandler: any;
|
|||||||
templateUrl: './activiti-task-header.component.html',
|
templateUrl: './activiti-task-header.component.html',
|
||||||
styleUrls: ['./activiti-task-header.component.css']
|
styleUrls: ['./activiti-task-header.component.css']
|
||||||
})
|
})
|
||||||
export class ActivitiTaskHeader implements OnInit {
|
export class ActivitiTaskHeader {
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
taskDetails: TaskDetailsModel;
|
taskDetails: TaskDetailsModel;
|
||||||
@@ -37,16 +37,11 @@ export class ActivitiTaskHeader implements OnInit {
|
|||||||
* @param auth
|
* @param auth
|
||||||
* @param translate
|
* @param translate
|
||||||
*/
|
*/
|
||||||
constructor(private auth: AlfrescoAuthenticationService,
|
constructor(private translate: AlfrescoTranslationService) {
|
||||||
private translate: AlfrescoTranslationService) {
|
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('node_modules/ng2-activiti-tasklist/src');
|
translate.addTranslationFolder('node_modules/ng2-activiti-tasklist/src');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user