diff --git a/endpoints/appr/registry.py b/endpoints/appr/registry.py index f57036360..467a9cb07 100644 --- a/endpoints/appr/registry.py +++ b/endpoints/appr/registry.py @@ -188,7 +188,7 @@ def push(namespace, package_name): raise InvalidUsage() values = request.get_json(force=True, silent=True) or {} - private = values.get('visibility', 'public') + private = values.get('visibility', 'private') owner = get_authenticated_user() if not Package.exists(reponame): diff --git a/static/js/directives/ui/app-public-view/channels-list.html b/static/js/directives/ui/app-public-view/channels-list.html index ca63c597d..2c5bd38dc 100644 --- a/static/js/directives/ui/app-public-view/channels-list.html +++ b/static/js/directives/ui/app-public-view/channels-list.html @@ -1,3 +1,4 @@ - \ No newline at end of file + +(None) \ No newline at end of file diff --git a/static/js/directives/ui/cor-table/cor-table.component.ts b/static/js/directives/ui/cor-table/cor-table.component.ts index feb681fb4..cc0e23c38 100644 --- a/static/js/directives/ui/cor-table/cor-table.component.ts +++ b/static/js/directives/ui/cor-table/cor-table.component.ts @@ -10,7 +10,7 @@ import { CorTableColumn } from './cor-table-col.component'; transclude: true, }) export class CorTableComponent implements ng.IComponentController { - @Input('=') public tableData: any[]; + @Input('<') public tableData: any[]; @Input('@') public tableItemTitle: string; @Input('<') public filterFields: string[]; @Input('@') public compact: string; @@ -30,6 +30,12 @@ export class CorTableComponent implements ng.IComponentController { }; } + public $onChanges(changes: ng.IOnChangesObject): void { + if (changes['tableData'] !== undefined) { + this.refreshOrder(); + } + } + public addColumn(col: CorTableColumn): void { this.columns.push(col); @@ -64,7 +70,8 @@ export class CorTableComponent implements ng.IComponentController { return col.isNumeric(); }).map((col) => (col.datafield)); - var processed = this.tableData.map((item) => { + var tableData = this.tableData || []; + var processed = tableData.map((item) => { var keys = Object.keys(item); var newObj = {}; for (var i = 0; i < keys.length; ++i) {