Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
private readonly eventManager: EventManager,
private readonly mediaService: IMediaService,
private readonly viewManager: ViewManager,
private readonly widgetService: IWidgetService
) {
// setting up...
this.mediaItems = ko.observableArray();
this.selectedMedia = ko.observable();
this.searchPattern = ko.observable();
this.working = ko.observable(true);
}
constructor(
private readonly trayCommands: ToolButton[],
private readonly roleService: RoleService,
private readonly viewManager: ViewManager,
) {
this.buttons = ko.observableArray(trayCommands);
this.availableRoles = ko.observableArray();
this.selectedRoles = ko.observableArray();
}
constructor(private readonly roleService: RoleService) {
this.availableRoles = ko.observableArray();
this.selectedRoles = ko.observableArray();
this.selectedRolesDisplay = ko.observable();
}
constructor() {
this.availableRoles = ko.observableArray();
this.selectedRoles = ko.observableArray();
}
constructor(
private readonly apiService: ApiService,
private readonly routeHelper: RouteHelper
) {
this.detailsPageUrl = ko.observable();
this.allowSelection = ko.observable(false);
this.apis = ko.observableArray([]);
this.working = ko.observable();
this.pattern = ko.observable();
this.page = ko.observable(1);
this.hasPrevPage = ko.observable();
this.hasNextPage = ko.observable();
this.hasPager = ko.computed(() => this.hasPrevPage() || this.hasNextPage());
this.apiGroups = ko.observableArray();
this.groupByTag = ko.observable(false);
}