Skip to content

Commit 0192e21

Browse files
added isTemplate to view (#653)
1 parent 4157c00 commit 0192e21

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

src/app/components/admin-app/admin-view-search/admin-view-edit/admin-view-edit.component.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ <h4 class="header-text ms-2">Edit View: {{ view.name }}</h4>
9898
</mat-form-field>
9999
</div>
100100
</div>
101+
102+
<div class="add-margin">
103+
<div>
104+
<mat-checkbox
105+
color="primary"
106+
[(ngModel)]="view.isTemplate"
107+
(change)="saveViewStatus()"
108+
matTooltip="If this View should be considered a template to be used for creating other Views"
109+
>
110+
Template
111+
</mat-checkbox>
112+
</div>
113+
</div>
101114
</div>
102115

103116
<div>

src/app/generated/player-api/api/teamPermission.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export class TeamPermissionService {
329329

330330
/**
331331
* Gets Team Permissions for the current User.
332-
* Returns all TeamPermissions for the current user or those of a specified Team or View. If a Team is specified, can optionally include TeamPermissions for all Teams in the same View that the User is a member of.
332+
* Returns all TeamPermissions for the current user or those of a specified Team or View. If a Team is specified, can optionally include TeamPermissions for all Teams in the same View that the User is a member of.
333333
* @param viewId
334334
* @param teamId
335335
* @param includeAllViewTeams

src/app/generated/player-api/model/createRoleCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ Copyright 2021 Carnegie Mellon University. All Rights Reserved.
1818

1919
export interface CreateRoleCommand {
2020
name?: string | null;
21+
allPermissions?: boolean;
2122
}
2223

src/app/generated/player-api/model/editViewCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ export interface EditViewCommand {
2121
name?: string | null;
2222
description?: string | null;
2323
status?: ViewStatus;
24+
isTemplate?: boolean;
2425
}
2526

src/app/generated/player-api/model/view.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ export interface View {
2323
description?: string | null;
2424
status?: ViewStatus;
2525
parentViewId?: string | null;
26+
isTemplate?: boolean;
2627
}
2728

0 commit comments

Comments
 (0)